From a47b9712f62ed675f541d6fb07c1f2db5f84e54e Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Sun, 10 Oct 2021 16:31:13 +0200 Subject: [PATCH] fixup 2 --- src/_pytest/recwarn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_pytest/recwarn.py b/src/_pytest/recwarn.py index 8768f08d3c3..29b8318f7ac 100644 --- a/src/_pytest/recwarn.py +++ b/src/_pytest/recwarn.py @@ -290,7 +290,7 @@ def found_str(): else: fail( f"""\ -DID NOT WARN. No warnings of type {self.expected_warning} matching the regex was emitted. +DID NOT WARN. No warnings of type {self.expected_warning} matching the regex were emitted. The regex is: {self.match_expr!r} The list of emitted warnings is: {found_str()}""" )