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
fixtures: --fixtures/--fixtures-per-test don't go through pytest_collection #15049
These two modes currently use session.perform_collect() directly to perform the collection.
I don't see a reason for them to bypass the regular collection hook. If plugins do things with the hook on a regular run, they should do it for these two modes as well, just as they do with --collect-only.
This could possibly cause some breakage (though unlikely I think), so let's schedule this for pytest 10.0.
changed the title [-]fixtures: `--show-fixtures`/`--show-fixtures-per-test` don't go through `pytest_collection`[/-][+]fixtures: `--fixtures`/`--fixtures-per-test` don't go through `pytest_collection`[/+]on Sep 17, 2026
Activity
[-]fixtures: `--show-fixtures`/`--show-fixtures-per-test` don't go through `pytest_collection`[/-][+]fixtures: `--fixtures`/`--fixtures-per-test` don't go through `pytest_collection`[/+]