You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pytest 9.1.0: conftest.py addoption regressed in nested directories #14608
|- A
|- conftest.py
|- B
|- conftest.py (<== we have addoption here)
When we invoke the test from directory A, the CLI args added through addoption in B/conftest.py was loaded correctly.
The new version seems to fail here.
It throwspytest: error: unrecognized arguments: <args-list>
pytest: 9.1.0
OS: Ubuntu 24.04
a detailed description of the bug or problem you are having
output of pip list from the virtual environment you are using
Activity
bluetech commentedon Jun 16, 2026
Please show the following:
pytest --collect-onlyfix: load test* subdir conftests when initial path is missing
chrisburr commentedon Jun 18, 2026
I've also ran into this and have a prepared a reproducer/fix in #14622
config: fix regression causing <invocation_dir>/tests* conftests to nâĶ
âŽïļ Update dependency pytest to v9.1.1 (#24)
[SECURITY] Update dependency pytest to v9 [SECURITY] (#2)
Update dependency pytest to v9 (#35)