@@ -583,11 +583,11 @@ def test_warn_on_warning_headers(self, caplog):
583583
584584 assert _WARNED_TOPICS == {"Topic1" , "Topic2" , "" }
585585 warnings = [record .message for record in caplog .records if record .levelname == "WARNING" ]
586- assert "WARNING: This is the first warning message." in warnings
587- assert "WARNING: This is the second warning message." in warnings
588- assert "WARNING: This is a repeated warning message for Topic1." not in warnings
589- assert "WARNING: This is a warning without a topic." in warnings
590- assert "WARNING: This is another warning without a topic." not in warnings
586+ assert "This is the first warning message." in warnings
587+ assert "This is the second warning message." in warnings
588+ assert "This is a repeated warning message for Topic1." not in warnings
589+ assert "This is a warning without a topic." in warnings
590+ assert "This is another warning without a topic." not in warnings
591591 # Request #2 (exact same warnings, should not warn again)
592592 caplog .clear ()
593593 with caplog .at_level ("WARNING" ):
@@ -602,5 +602,5 @@ def test_warn_on_warning_headers(self, caplog):
602602 _warn_on_warning_headers (response )
603603 warnings = [record .message for record in caplog .records if record .levelname == "WARNING" ]
604604 assert len (warnings ) == 1
605- assert warnings == ["WARNING: Another warning." ]
605+ assert warnings == ["Another warning." ]
606606 assert "Topic4" in _WARNED_TOPICS
0 commit comments