-
-
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
Xfail does not work with condition keyword argument. #1496
Labels
type: bug
problem that needs to be addressed
Comments
Thanks for the report! |
PR for this issue: #1524 |
This was referenced Aug 23, 2016
Merged
This was referenced Sep 23, 2016
This was referenced Oct 1, 2017
This was referenced Oct 16, 2017
This was referenced Oct 29, 2017
This was referenced Nov 11, 2017
Merged
This was referenced Nov 20, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the docs, you provide a signature of the xfail marker:
def xfail(condition=None, *, reason=None, raises=None, run=True, strict=False):
However, trying to use the xfail marker with a condition keyword argument will cause it to always xfail the test, no matter the evaluation of the argument.
Quick example:
The text was updated successfully, but these errors were encountered: