From 414e18ff00c2c097eb561dc89434ef1a16f0c4c2 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Mon, 7 Mar 2022 22:30:48 +0100 Subject: [PATCH] adopt review on compact output Co-authored-by: Florian Bruhin --- src/_pytest/recwarn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_pytest/recwarn.py b/src/_pytest/recwarn.py index 157e72275..26f297d31 100644 --- a/src/_pytest/recwarn.py +++ b/src/_pytest/recwarn.py @@ -291,6 +291,6 @@ class WarningsChecker(WarningsRecorder): fail( f"""\ DID NOT WARN. No warnings of type {self.expected_warning} matching the regex were emitted. -The regex is: {self.match_expr} -The list of emitted warnings is: {found_str()}""" + Regex: {self.match_expr} + Emitted warnings: {found_str()}""" )