-
-
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
Problems with fixture parametrization #531
Labels
topic: fixtures
anything involving fixtures directly or indirectly
topic: parametrize
related to @pytest.mark.parametrize
type: bug
problem that needs to be addressed
Comments
test_buy.py:
|
This was referenced Jun 25, 2018
Zac-HD
added
the
topic: fixtures
anything involving fixtures directly or indirectly
label
Feb 18, 2019
Closing this issue because I can't get it to fail under current versions of pytest 😄 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
topic: fixtures
anything involving fixtures directly or indirectly
topic: parametrize
related to @pytest.mark.parametrize
type: bug
problem that needs to be addressed
Originally reported by: Nikolaus Rath (BitBucket: nikratio, GitHub: nikratio)
Please consider the attached test. In this form, it runs just fine:
However, if you reverse the order of the first fixture parametrization, i.e. if you use
instead of
the test suddenly fails with:
It seems that py.test thinks that it is passing "val1" to test_two, but it actually passes "val2".
The text was updated successfully, but these errors were encountered: