You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def raise_error():
raise AssertionError("Message with (parens)")
assert_that(calling(raise_error), raises(AssertionError, "Message with (parens)")
will fail with Correct assertion type raised, but the expected pattern ("Message with (parens)") not found. Exception message was: "Message with (parens)" which is a somewhat confusing message.
#226 resolves this by ensuring a regex mismatch only occurs if the pattern is not also a literal match for the error.
The text was updated successfully, but these errors were encountered:
will fail with
Correct assertion type raised, but the expected pattern ("Message with (parens)") not found. Exception message was: "Message with (parens)"
which is a somewhat confusing message.#226 resolves this by ensuring a regex mismatch only occurs if the pattern is not also a literal match for the error.
The text was updated successfully, but these errors were encountered: