indirectly parameterized session-scoped fixtures aren't #13159
Labels
status: needs information
reporter needs to provide more information; can be closed after 2 or more weeks of inactivity
topic: fixtures
anything involving fixtures directly or indirectly
type: question
general question, might be closed after 2 weeks of inactivity
Summary
When a fixture is passed parameters from a test, via
@pytest.mark.parameterize
'sindirect=True
, per-parameter-value session-scoping does not work. For a given passed value, the fixture may be created/torn down multiple times.Minimal example
Code
Expected Result
Actual Result
Platform details
Pytest 8.2.2
Python 3.11.10
MacOS 15.2 (Sequoia)
Pip list output
The text was updated successfully, but these errors were encountered: