-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Unexpected or undocumented behavior of pytest.mark.parametrize? #9889
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
Comments
8 is less than 10 but 10 is not less than 10 -- seems expected? |
Absolutely, no PhD in math necessary for that. What is not expected resp. undocumented is the possibility to use |
oh true, it is overwriting a fixture that does seem wrong |
Yes, this is an "undocumented" feature (I'm putting that in quotes because seems mostly like an accident in implementation IMO). I think we discussed this in the past, either to change the behavior, document it, or leave it undocumented, don't have the time to dig and find the issue right now unfortunately. |
looks like this is a dupe of #5712 |
Ahh right, thanks for digging it up @asottile! |
Should we close this then? |
Yes, thanks @The-Compiler! |
Consider the following file
test_stuff.py
The second case fails, the first does not.
If this is intended behavior, I couldn't find documentation about this.
pytest version: 6.2.5
The text was updated successfully, but these errors were encountered: