Skip to content

Commit 0706155

Browse files
committed
Revert "Revert "Enable building in parallel with pytest-xdist""
This reverts commit 21d68bd.
1 parent 21d68bd commit 0706155

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

scripts/basic-test.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ for k, v in sorted(dict(os.environ).items()):
1616
'
1717

1818
if [ "$(python -c 'import sys; print(sys.version_info[:2] >= (3, 5))')" = "True" ] ; then
19-
PYTEST="python -m pytest --assert=plain"
19+
PYTEST="python -m pytest --assert=plain -n 2"
2020
else
21-
PYTEST="python -m pytest"
21+
PYTEST="python -m pytest -n 2"
2222
fi
2323

2424
$PYTEST tests/cover

tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ passenv=HOME
77
[testenv]
88
deps =
99
pytest
10+
pytest-xdist
1011
whitelist_externals=
1112
bash
1213
setenv=

0 commit comments

Comments
 (0)