From 81c3bc76bcd366c61da2a63047421241e33c366b Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 26 Oct 2019 22:54:11 +0200 Subject: [PATCH] tests: harden test_disabled_capture_fixture --- testing/test_capture.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/testing/test_capture.py b/testing/test_capture.py index eb55093bb..dd0a3b949 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: