Skip to content

Commit 4b1c1f8

Browse files
committed
Limit to the worst tests
1 parent 7611a5d commit 4b1c1f8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tools/requirements/tests.txt

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ mock
33
pretend
44
pytest==3.8.2
55
pytest-cov
6+
pytest-custom_exit_code
67
# Prevent installing 7.0 which has install_requires "pytest >= 3.10".
78
pytest-rerunfailures<7.0
89
pytest-timeout

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ deps = -r{toxinidir}/tools/requirements/tests.txt
2020
commands_pre =
2121
python -c 'import shutil, sys; shutil.rmtree(sys.argv[1], ignore_errors=True)' {toxinidir}/tests/data/common_wheels
2222
{[helpers]pip} wheel -w {toxinidir}/tests/data/common_wheels -r {toxinidir}/tools/requirements/tests-common_wheels.txt
23-
commands = pytest --timeout 300 []
23+
commands = pytest --timeout 300 --suppress-no-test-exit-code [] tests/unit/test_build_env.py
2424
install_command = {[helpers]pip} install {opts} {packages}
2525
list_dependencies_command = {[helpers]pip} freeze --all
2626

0 commit comments

Comments
 (0)