-
-
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
skipif + parametrize not skipping tests #1296
Comments
Thanks for the report! 😄 |
I have recently experienced this issue. It still persists in |
Is there any solution for the issue? Still experiencing it in pytest==3.0.5 |
@alessss markers have not been fixed, this issue is not easy to resolve due to legacy |
If i use plain True in skipif decorator it works well: But if there is some function, returning True or False - tests don't start. Is there any workaround for this? |
@alessss I don't see how that'd be possible - and if you don't also have skipif markers on parameters, this issue is totally unrelated. |
For reference, #1921 discusses how to start fixing markers in general. |
This is a non-obvious pain point I am experiencing on v3.0.6 |
@hpk42 i beleive this one breaks apart due to yet another marker transfer detail included in parametrization |
we can fix this by landing #2522 as well |
fixed in #3317 |
fixed in #3317 |
I have this testing code:
The expected behavior is that if any of the
skipif
conditions returnsTrue
, the test is skipped. The actual behavior is that theskipif
condition seems to depend entirely on the value of thedont_skip
parameter. For example, the following test case causes the tests to be skipped (theTrue
s andFalse
s are swapped around):Here's the full output of the first code sample:
The issue manifests under:
I'm running OS X 10.9.5.
The text was updated successfully, but these errors were encountered: