summaryrefslogtreecommitdiff
path: root/tests/test_concurrency.py
diff options
context:
space:
mode:
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