Skip to content

Commit

Permalink
leave the repr until we need it
Browse files Browse the repository at this point in the history
  • Loading branch information
RonnyPfannschmidt committed Dec 12, 2021
1 parent f7f713e commit 06d2435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/recwarn.py
Expand Up @@ -291,6 +291,6 @@ def found_str():
fail(
f"""\
DID NOT WARN. No warnings of type {self.expected_warning} matching the regex were emitted.
The regex is: {self.match_expr!r}
The regex is: {self.match_expr}
The list of emitted warnings is: {found_str()}"""
)

0 comments on commit 06d2435

Please sign in to comment.