diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-01 19:25:14 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-02 07:38:20 -0400 |
commit | c6ba56c68b2a3850f530cc1fdbf9856a90559a1f (patch) | |
tree | 4b2fd9dd4139a5d9ed233ca2da8f1c4952103b39 /tests/test_concurrency.py | |
parent | d2dad79e0d0611eb519995bd8696f1ada2bcd2cd (diff) | |
download | python-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.py | 14 |
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 |