Skip to content

Commit 0326426

Browse files
dariomesicbluetech
andauthored
Update src/_pytest/raises.py
Co-authored-by: Ran Benita <[email protected]>
1 parent 5b7f4a7 commit 0326426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/raises.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def _check_match(self, e: BaseException) -> bool:
522522
self._fail_reason = (
523523
f"Regex pattern did not match{maybe_specify_type}.\n"
524524
f" Expected regex: {_match_pattern(self.match)!r}\n"
525-
f" Actual exception message: {stringified_exception!r}"
525+
f" Actual message: {stringified_exception!r}"
526526
)
527527
if _match_pattern(self.match) == stringified_exception:
528528
self._fail_reason += "\n Did you mean to `re.escape()` the regex?"

0 commit comments

Comments
 (0)