diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-09-10 15:41:26 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-09-10 15:41:26 +0200 |
| commit | a32206b3650c5ce18c0a06eb0eb40abc8becfa58 (patch) | |
| tree | d3d04058e44a7080d3fcaa637bb3afa31ba4c3e4 /tests | |
| parent | 710b4a70321148b470bf55c73d81170f07c839f9 (diff) | |
Documented that the parallel test runner doesn't work on Windows.
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/runtests.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/runtests.py b/tests/runtests.py index cfc8722ae2..4d6e22e3b2 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -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 |
