Pytest 3.0 does not accept empty list in fixture #1849
Closed
Labels
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. |
nicoddemus
added a commit
to nicoddemus/pytest
that referenced
this issue
Aug 23, 2016
This was referenced Aug 24, 2016
This was referenced Feb 12, 2018
This was referenced Feb 20, 2018
This was referenced Mar 5, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: