We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08c99b6 commit 9faf431Copy full SHA for 9faf431
tests/conftest.py
@@ -63,10 +63,10 @@ def pytest_collection_modifyitems(config, items):
63
if not hasattr(item, 'module'): # e.g.: DoctestTextfile
64
continue
65
66
- # Mark network tests as flaky
67
- if (item.get_closest_marker('network') is not None and
68
- "CI" in os.environ):
69
- item.add_marker(pytest.mark.flaky(reruns=3))
+ if "CI" in os.environ:
+ # Mark network tests as flaky
+ if item.get_closest_marker('network') is not None:
+ item.add_marker(pytest.mark.flaky(reruns=3))
70
71
if (item.get_closest_marker('fails_on_new_resolver') and
72
config.getoption("--new-resolver") and
0 commit comments