summaryrefslogtreecommitdiff
path: root/tests/test_concurrency.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-05-01 19:25:14 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-05-02 07:38:20 -0400
commitc6ba56c68b2a3850f530cc1fdbf9856a90559a1f (patch)
tree4b2fd9dd4139a5d9ed233ca2da8f1c4952103b39 /tests/test_concurrency.py
parentd2dad79e0d0611eb519995bd8696f1ada2bcd2cd (diff)
downloadpython-coveragepy-git-c6ba56c68b2a3850f530cc1fdbf9856a90559a1f.tar.gz
refactor: remove a few more version checks
Diffstat (limited to 'tests/test_concurrency.py')
-rw-r--r--tests/test_concurrency.py14
1 files changed, 2 insertions, 12 deletions
diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py
index a5aed4f1..e1606e83 100644
--- a/tests/test_concurrency.py
+++ b/tests/test_concurrency.py
@@ -374,12 +374,7 @@ class MultiprocessingTest(CoverageTest):
source = .
""" % concurrency)
- if env.PYVERSION >= (3, 4):
- start_methods = ['fork', 'spawn']
- else:
- start_methods = ['']
-
- for start_method in start_methods:
+ for start_method in ["fork", "spawn"]:
if start_method and start_method not in multiprocessing.get_all_start_methods():
continue
@@ -441,12 +436,7 @@ class MultiprocessingTest(CoverageTest):
omit = */site-packages/*
""")
- if env.PYVERSION >= (3, 4):
- start_methods = ['fork', 'spawn']
- else:
- start_methods = ['']
-
- for start_method in start_methods:
+ for start_method in ["fork", "spawn"]:
if start_method and start_method not in multiprocessing.get_all_start_methods():
continue