diff --git a/testing/test_capture.py b/testing/test_capture.py index 67aa0c77e..8e594a3f8 100644 --- a/testing/test_capture.py +++ b/testing/test_capture.py @@ -605,11 +605,7 @@ class TestCaptureFixture: ) args = ("-s",) if no_capture else () result = testdir.runpytest_subprocess(*args) - result.stdout.fnmatch_lines( - """ - *while capture is disabled* - """ - ) + result.stdout.fnmatch_lines(["*while capture is disabled*", "*= 2 passed in *"]) result.stdout.no_fnmatch_line("*captured before*") result.stdout.no_fnmatch_line("*captured after*") if no_capture: