mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Documented that the parallel test runner doesn't work on Windows.
This commit is contained in:
parent
710b4a7032
commit
a32206b365
3 changed files with 10 additions and 5 deletions
|
@ -236,8 +236,11 @@ 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.
|
||||
if all(conn.features.can_clone_databases for conn in connections.all()):
|
||||
elif all(conn.features.can_clone_databases for conn in connections.all()):
|
||||
return default_test_processes()
|
||||
else:
|
||||
return 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue