-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parametrize with scope breaks fixture dependencies #13248
Comments
both variants should error - the fixture is defined as session scope and the parameterize is not allowed to change that |
@RonnyPfannschmidt From the documentation of
I've found it very useful to narrow the fixture's scope this way to prevent side effects of a test (or a group of tests) with specific parameter value from leaking into other tests. It completely solves #9287, in particular. |
|
Notice the The form of late |
Reproducer:
Produces the following error:
parametrize
withscope
is sometimes important for test isolation:#9287 (comment)
The bug is not reproduced consistently, it may be hidden if the fixture is already evaluated by a
function
-scoped fixture. For example:This does not return any errors, works as expected.
The text was updated successfully, but these errors were encountered: