pytest won't run root conftest.py's pytest_configure in special circumstances #11365
Labels
topic: config
related to config handling, argument parsing and config file
type: bug
problem that needs to be addressed
Consider the following project: https://github.com/Redoubts/_pytest_bug_report
There's a root level conftest.py, and 3 plugins (two loaded in the conftest, and a third loaded by plugin 2). All define a
pytest_configure
in some way.with
platform darwin -- Python 3.11.4, pytest-7.4.0, pluggy-1.0.0
, we seeWhich is somewhat expected, each
pytest_configure
gets called.If you update pluggy to 1.2+, you see
Where the third plugin's
pytest_configure
is called twice, but the rootpytest_configure
is never called.I think this is more specifically due to
mypackage/plugin3.py
's@pytest.hookimpl
wrapper. Maybe it's ill advised to do that, but I found this bizarre scenario when testing package updates in a much larger codebase.The text was updated successfully, but these errors were encountered: