Skip to content

Commit 0b26d97

Browse files
committed
explicitly specify config file in pytest 6
1 parent 514be80 commit 0b26d97

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

hypothesis-python/tox.ini

+5-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,11 @@ setenv=
205205
PYTHONWARNDEFAULTENCODING=
206206
commands=
207207
pip install pytest==6.2.5 pytest-xdist
208-
python -bb -X dev -m pytest tests/pytest tests/cover/test_testdecorators.py
208+
# explicitly pass config file to suppress automatic discovery, which would error with a parsing
209+
# bug for toml. only on pytest 6, as the only major version to support pyproject.toml and also
210+
# use an affected parsing library.
211+
# https://github.com/HypothesisWorks/hypothesis/pull/4326#issuecomment-2764314834
212+
python -bb -X dev -m pytest -c ../pytest.ini tests/pytest tests/cover/test_testdecorators.py
209213

210214
[testenv:pytest7]
211215
deps =

0 commit comments

Comments
 (0)