File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,16 @@ def pytest_collection_modifyitems(config, items):
32
32
continue
33
33
34
34
# Mark network tests as flaky
35
- if item .get_marker ('network' ) is not None and "CI" in os .environ :
35
+ if (item .get_closest_marker ('network' ) is not None and
36
+ "CI" in os .environ ):
36
37
item .add_marker (pytest .mark .flaky (reruns = 3 ))
37
38
38
39
if six .PY3 :
39
- if (item .get_marker ('incompatible_with_test_venv' ) and
40
+ if (item .get_closest_marker ('incompatible_with_test_venv' ) and
40
41
config .getoption ("--use-venv" )):
41
42
item .add_marker (pytest .mark .skip (
42
43
'Incompatible with test venv' ))
43
- if (item .get_marker ('incompatible_with_venv' ) and
44
+ if (item .get_closest_marker ('incompatible_with_venv' ) and
44
45
sys .prefix != sys .base_prefix ):
45
46
item .add_marker (pytest .mark .skip (
46
47
'Incompatible with venv' ))
You can’t perform that action at this time.
0 commit comments