xfail marker for a specific exception message? #13571
Unanswered
MarcelWilson
asked this question in
Q&A
Replies: 1 comment
-
Currently there's no implementation of that The idea of matchers is pre implementation so there's no direct escape hatch A runtest_call hookwrapper can affect the outcome |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there some way to mark a test with
xfail(exception=ExpectedException)
while also specifying what the expected message would be? (similar to howwith pytest.raises(ExpectedException, match='foo')
works )?I have a test that I want to mark as xfail when a very specific exception message occurs, but not ALL
AssertionError
. Is there a way to accomplish this?Additional info: I don't have direct control over the exception that is raised. Wish that I did; I would make it a specific subclass exception.
Beta Was this translation helpful? Give feedback.
All reactions