Skip to content

Commit 5624e36

Browse files
committed
add more indications to the result of the tests
1 parent e05b33e commit 5624e36

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

testing/python/setup_only.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,13 @@ def test_arg(arg):
284284
result = testdir.runpytest("--setup-show", p, no_reraise_ctrlc=True)
285285
assert result.ret == 2
286286
result.stdout.fnmatch_lines(
287-
["*SETUP F arg*", "*test_arg (fixtures used: arg)*", "*TEARDOWN F arg*"]
287+
[
288+
"*SETUP F arg*",
289+
"*test_arg (fixtures used: arg)*",
290+
"*TEARDOWN F arg*",
291+
"*! KeyboardInterrupt !*",
292+
"*= no tests ran in *",
293+
]
288294
)
289295

290296

@@ -302,4 +308,6 @@ def test_arg(arg):
302308
)
303309
result = testdir.runpytest("--setup-show", p, no_reraise_ctrlc=True)
304310
assert result.ret == 2
305-
result.stdout.fnmatch_lines(["*SETUP F arg*", "*KeyboardInterrupt*"])
311+
result.stdout.fnmatch_lines(
312+
["*SETUP F arg*", "*! KeyboardInterrupt !*", "*= no tests ran in *"]
313+
)

0 commit comments

Comments
 (0)