summaryrefslogtreecommitdiff
path: root/django/test/runner.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/test/runner.py')
-rw-r--r--django/test/runner.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/test/runner.py b/django/test/runner.py
index 38578e7e0c..cb1893c56a 100644
--- a/django/test/runner.py
+++ b/django/test/runner.py
@@ -258,8 +258,7 @@ def default_test_processes():
"""
# The current implementation of the parallel test runner requires
# multiprocessing to start subprocesses with fork().
- # On Python 3.4+: if multiprocessing.get_start_method() != 'fork':
- if not hasattr(os, 'fork'):
+ if multiprocessing.get_start_method() != 'fork':
return 1
try:
return int(os.environ['DJANGO_TEST_PROCESSES'])