tests: unittest: fix/harden "test_exit_outcome"

Ref: https://github.com/pytest-dev/pytest/pull/5634#pullrequestreview-265565917
This commit is contained in:
Daniel Hahler 2019-07-23 19:35:51 +02:00
parent 2a724a1c81
commit 401c3d1109
1 changed files with 1 additions and 1 deletions

View File

@ -1085,4 +1085,4 @@ def test_exit_outcome(testdir):
"""
)
result = testdir.runpytest()
result.stdout.fnmatch_lines("*Exit: pytest_exit called*")
result.stdout.fnmatch_lines(["*Exit: pytest_exit called*", "*= no tests ran in *"])