-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
metafunc.parametrize overwrites scope #634
Labels
Comments
Original comment by BitBucket: zmastervader, GitHub: zmastervader: I have run into this exact same issue in the release of 2.7. Is there any ETA on a fix? |
This was referenced Aug 19, 2016
This was referenced Nov 11, 2017
Merged
This was referenced Nov 20, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Originally reported by: Nikolaus Rath (BitBucket: nikratio, GitHub: nikratio)
According to http://pytest.org/latest/parametrize.html#the-metafunc-object, the
scope
parameter overrides the fixture scope if specified. But in practice, the fixture scope seems to be ignored even if noscope
parameter is passed tometafunc.parametrize
. Example:Note how the fixture is called multiple times for the same parameter.
The text was updated successfully, but these errors were encountered: