Skip to content

Commit

Permalink
In tox, run pytest with xdist
Browse files Browse the repository at this point in the history
That way, plain pytest usage does not need it,
and hence it is not listed in the [test] extra.
  • Loading branch information
hroncok authored and frenzymadness committed Oct 23, 2024
1 parent 51b2944 commit 53c429f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ isolated_build = True
[testenv]
commands =
python -m platform
pytest {posargs}
pytest -n auto {posargs}
extras =
test
deps =
# this is deliberately not in the test extra, as it is not required:
pytest-xdist

[testenv:black]
deps=black
Expand Down

0 comments on commit 53c429f

Please sign in to comment.