Skip to content

Commit 53c429f

Browse files
hroncokfrenzymadness
authored andcommitted
In tox, run pytest with xdist
That way, plain pytest usage does not need it, and hence it is not listed in the [test] extra.
1 parent 51b2944 commit 53c429f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tox.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ isolated_build = True
55
[testenv]
66
commands =
77
python -m platform
8-
pytest {posargs}
8+
pytest -n auto {posargs}
99
extras =
1010
test
11+
deps =
12+
# this is deliberately not in the test extra, as it is not required:
13+
pytest-xdist
1114

1215
[testenv:black]
1316
deps=black

0 commit comments

Comments
 (0)