From 5624e366c1c812e200231e70c6ba2f15dc04a323 Mon Sep 17 00:00:00 2001 From: Yoav Caspi Date: Sun, 20 Oct 2019 09:54:23 +0300 Subject: [PATCH] add more indications to the result of the tests --- testing/python/setup_only.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/testing/python/setup_only.py b/testing/python/setup_only.py index 1c3a1d368f2..8e4e3ace812 100644 --- a/testing/python/setup_only.py +++ b/testing/python/setup_only.py @@ -284,7 +284,13 @@ def test_arg(arg): result = testdir.runpytest("--setup-show", p, no_reraise_ctrlc=True) assert result.ret == 2 result.stdout.fnmatch_lines( - ["*SETUP F arg*", "*test_arg (fixtures used: arg)*", "*TEARDOWN F arg*"] + [ + "*SETUP F arg*", + "*test_arg (fixtures used: arg)*", + "*TEARDOWN F arg*", + "*! KeyboardInterrupt !*", + "*= no tests ran in *", + ] ) @@ -302,4 +308,6 @@ def test_arg(arg): ) result = testdir.runpytest("--setup-show", p, no_reraise_ctrlc=True) assert result.ret == 2 - result.stdout.fnmatch_lines(["*SETUP F arg*", "*KeyboardInterrupt*"]) + result.stdout.fnmatch_lines( + ["*SETUP F arg*", "*! KeyboardInterrupt !*", "*= no tests ran in *"] + )