We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b7f4a7 commit 0326426Copy full SHA for 0326426
src/_pytest/raises.py
@@ -522,7 +522,7 @@ def _check_match(self, e: BaseException) -> bool:
522
self._fail_reason = (
523
f"Regex pattern did not match{maybe_specify_type}.\n"
524
f" Expected regex: {_match_pattern(self.match)!r}\n"
525
- f" Actual exception message: {stringified_exception!r}"
+ f" Actual message: {stringified_exception!r}"
526
)
527
if _match_pattern(self.match) == stringified_exception:
528
self._fail_reason += "\n Did you mean to `re.escape()` the regex?"
0 commit comments