diff --git a/tests/test_logging.py b/tests/test_logging.py index 4580d6b6..e95b7ce5 100644 --- a/tests/test_logging.py +++ b/tests/test_logging.py @@ -104,4 +104,4 @@ def test_log_connection_lost(debug, monkeypatch): assert log.startswith( 'Connection lost before response written @') else: - 'Connection lost before response written @' not in log + assert 'Connection lost before response written @' not in log