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

Allow for a forced xpass #241

Closed
pytestbot opened this issue Dec 19, 2012 · 1 comment
Closed

Allow for a forced xpass #241

pytestbot opened this issue Dec 19, 2012 · 1 comment
Labels
type: enhancement new feature or API change, should be merged into features branch

Comments

@pytestbot
Copy link
Contributor

Originally reported by: Anonymous


I have a test where I want to xfail on one environment only. I have wrapped the pytest.xfail in a condition so it will only xfail on that environment and if the assert were to fail, but it would be nice to be able to force an xpass if the assert were to pass.


@pytestbot
Copy link
Contributor Author

Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt):


then you need to use a conditional xfail marker
the normal xfail call raises an exception and exits the test

@pytestbot pytestbot added the type: enhancement new feature or API change, should be merged into features branch label Jun 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement new feature or API change, should be merged into features branch
Projects
None yet
Development

No branches or pull requests

1 participant