Skip to content
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

Made it so that parameterized raises a ValueError if the iterable is empty #48

Merged
merged 3 commits into from Mar 11, 2018

Conversation

danielbradburn
Copy link
Contributor

When parameterizing tests it is very unlikely that you want an empty iterator. This has burnt me in the past where the parameters are programmatically generated, and there is some bug in the generation code. In this case then the failure is silent, since no tests will be run.

…ut iterable is empty, this is probably due to some programmer error and means that no tests are run when this was probably not intended
@wolever
Copy link
Owner

wolever commented Mar 11, 2018

Woo! Apparently I had this staged and ready to go, but forgot to push it. I'll be cutting a new release today. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants