mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #35844 -- Fixed tests for test --parallel option on Python 3.14+.
"forkserver" is the new default on POSIX systems, and Django doesn't
support parallel tests with "forkserver":
b65f2cdfa7
This commit is contained in:
@@ -45,6 +45,7 @@ def change_loader_patterns(patterns):
|
||||
@mock.patch.dict(os.environ, {}, clear=True)
|
||||
@mock.patch.object(multiprocessing, "cpu_count", return_value=12)
|
||||
# Python 3.8 on macOS defaults to 'spawn' mode.
|
||||
# Python 3.14 on POSIX systems defaults to 'forkserver' mode.
|
||||
@mock.patch.object(multiprocessing, "get_start_method", return_value="fork")
|
||||
class DiscoverRunnerParallelArgumentTests(SimpleTestCase):
|
||||
def get_parser(self):
|
||||
|
||||
Reference in New Issue
Block a user