From 401c3d11097225e0081b41cfe5816e398812ba0c Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 23 Jul 2019 19:35:51 +0200 Subject: [PATCH] tests: unittest: fix/harden "test_exit_outcome" Ref: https://github.com/pytest-dev/pytest/pull/5634#pullrequestreview-265565917 --- testing/test_unittest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test_unittest.py b/testing/test_unittest.py index 153b76a89..ec5f92e18 100644 --- a/testing/test_unittest.py +++ b/testing/test_unittest.py @@ -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 *"])