Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Multiple calls to parametrize result in empty value lists not skipping the test #510
If you call parametrize on a test more than once for different arguments of the test it doesn't seem to combine the parameters correctly if some of them are empty. This results in tests that would normally get skipped because their parametisation is missing values receiving the internal
Examples here https://gist.github.com/public/e671a53b70fbb6fb6129
The last example is the simplest reproduction of the problem.
This does not get skipped and
but if you swap the order of the calls to parametrize...
it skips as you would expect from reading the documentation.
I've reproduced this on 2.5.2 and on the current master 2.6 branch.