File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -128,13 +128,13 @@ def pytest_collection_modifyitems(config, items):
128
128
markers = list (item .iter_markers ())
129
129
# skip if specified in skips file
130
130
for id_ in skip_ids :
131
- if item .nodeid . startswith ( id_ ) :
132
- item .add_marker (mark .skip (reason = "skips file" ))
131
+ if id_ in item .nodeid :
132
+ item .add_marker (mark .skip (reason = f "skips file ( { skips_file } ) " ))
133
133
break
134
134
# xfail if specified in xfails file
135
135
for id_ in xfail_ids :
136
- if item .nodeid . startswith ( id_ ) :
137
- item .add_marker (mark .xfails (reason = "xfails file" ))
136
+ if id_ in item .nodeid :
137
+ item .add_marker (mark .xfail (reason = f "xfails file ( { xfails_file } ) " ))
138
138
break
139
139
# skip if disabled or non-existent extension
140
140
ext_mark = next ((m for m in markers if m .name == "xp_extension" ), None )
You can’t perform that action at this time.
0 commit comments