Merge pull request #6067 from blueyed/harden-test

tests: harden test_disabled_capture_fixture
This commit is contained in:
Daniel Hahler 2019-11-02 15:33:55 +01:00 committed by GitHub
commit 6df4d07a57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -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: