Skip to content

Commit 9faf431

Browse files
committed
Breakup conditional for readability
1 parent 08c99b6 commit 9faf431

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/conftest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ def pytest_collection_modifyitems(config, items):
6363
if not hasattr(item, 'module'): # e.g.: DoctestTextfile
6464
continue
6565

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))
66+
if "CI" in os.environ:
67+
# Mark network tests as flaky
68+
if item.get_closest_marker('network') is not None:
69+
item.add_marker(pytest.mark.flaky(reruns=3))
7070

7171
if (item.get_closest_marker('fails_on_new_resolver') and
7272
config.getoption("--new-resolver") and

0 commit comments

Comments
 (0)