diff options
author | Pradyun Gedam <pradyunsg@users.noreply.github.com> | 2020-10-25 23:02:59 +0530 |
---|---|---|
committer | Pradyun Gedam <pradyunsg@users.noreply.github.com> | 2020-10-25 23:02:59 +0530 |
commit | 9faf431fbbd2c1fe94ee14aea096480123b0a6c6 (patch) | |
tree | c79e71e08261b759dc4a7bf5f9e53666ceed0966 | |
parent | 08c99b6e00135ca8df2e98db58aa0b701b971c64 (diff) | |
download | pip-9faf431fbbd2c1fe94ee14aea096480123b0a6c6.tar.gz |
Breakup conditional for readability
-rw-r--r-- | tests/conftest.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index ffd9f4215..81e136688 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -63,10 +63,10 @@ def pytest_collection_modifyitems(config, items): if not hasattr(item, 'module'): # e.g.: DoctestTextfile continue - # Mark network tests as flaky - if (item.get_closest_marker('network') is not None and - "CI" in os.environ): - 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)) if (item.get_closest_marker('fails_on_new_resolver') and config.getoption("--new-resolver") and |