-
-
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
Pytest 3.0 does not accept empty list in fixture #1849
Comments
For reference, this is the behavior with 2.9.2:
With 3.0.0:
|
Could someone bisect this so we can discuss if this was unintended or there was the intent of making this an error (in which case we should work on the message of course)? |
@The-Compiler thanks! I didn't do it myself because I'm at work right now and would like to get the ball rolling. 😁 |
@nicoddemus Sorry if that sounded like "why didn't you do it yourself?", it was meant as a "git bisect run is awesome!" 😉 |
Please, not at all! I was just asking because I couldn't really spend the time doing it myself, thanks for doing it. |
With pytest 2.x it was very easy to use empty lists in fixture if dynamically run test case did not find anything to test. pytest 3.x seems to accept only None values.
Also when setting empty list in fixture with pytest 3.x the error message is very ugly
example code:
(edited by @The-Compiler to add code blocks)
The text was updated successfully, but these errors were encountered: