File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff 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+ )
You can’t perform that action at this time.
0 commit comments