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):
284
284
result = testdir .runpytest ("--setup-show" , p , no_reraise_ctrlc = True )
285
285
assert result .ret == 2
286
286
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
+ ]
288
294
)
289
295
290
296
@@ -302,4 +308,6 @@ def test_arg(arg):
302
308
)
303
309
result = testdir .runpytest ("--setup-show" , p , no_reraise_ctrlc = True )
304
310
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