summaryrefslogtreecommitdiff
path: root/django/test/runner.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-01-25 13:59:25 -0500
committerGitHub <noreply@github.com>2017-01-25 13:59:25 -0500
commit1c466994d9729a8902d34e277a3a685bef2a08e1 (patch)
tree3a0c5ea4fc352aead66378f1fc2217feb6e1e2c7 /django/test/runner.py
parent11856ea44e4dd1ff2358c559c0d04ac848832c23 (diff)
Refs #23919 -- Removed misc Python 2/3 references.
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'])