-
-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Labels
Description
Hello,
I wanted to use check.raises(AssertionError, message = "this is a custom message"), like how I used pytest.raises(AssertionError, message = "this is a custom message") but then I realized that it was deprecated in pytest:
https://docs.pytest.org/en/latest/deprecations.html#raises-message-deprecated
There is a workaround for pytest (using pytest.fail) but I don't think this is usable with pytest-check.
Is there a way for me to customize the error message with check.raises ?
Really useful nice project btw, thanks a lot