summaryrefslogtreecommitdiff
path: root/testing/test_capture.py
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-10-26 22:54:11 +0200
committerDaniel Hahler <git@thequod.de>2019-10-27 03:02:24 +0100
commit81c3bc76bcd366c61da2a63047421241e33c366b (patch)
treea6f618e9c2fa6db469c358f06b258c5cfa3100d3 /testing/test_capture.py
parenta92f49afa7d32d3c64972390a22c9ed7710fcfcb (diff)
downloadpytest-81c3bc76bcd366c61da2a63047421241e33c366b.tar.gz
tests: harden test_disabled_capture_fixture
Diffstat (limited to 'testing/test_capture.py')
-rw-r--r--testing/test_capture.py6
1 files changed, 1 insertions, 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: