diff options
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/runtests.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/runtests.py b/tests/runtests.py index 4d6e22e3b2..cfc8722ae2 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -236,11 +236,8 @@ def teardown(state): def actual_test_processes(parallel): if parallel == 0: - # On Python 3.4+: if multiprocessing.get_start_method() != 'fork': - if not hasattr(os, 'fork'): - return 1 # This doesn't work before django.setup() on some databases. - elif all(conn.features.can_clone_databases for conn in connections.all()): + if all(conn.features.can_clone_databases for conn in connections.all()): return default_test_processes() else: return 1 |
