summaryrefslogtreecommitdiff
path: root/django/test
diff options
context:
space:
mode:
authorShubham Singh <ssingh@multimediallc.com>2025-09-12 14:32:35 -0500
committerJacob Walls <jacobtylerwalls@gmail.com>2025-09-26 10:56:56 -0400
commitf8e91d0104b58badcc45e39b12375a6092866db5 (patch)
tree3be9ec51f8e7615ec9cb2fd5005707e1fcbbf627 /django/test
parentdb2f206ee1b1be68e77ffc26eccdcd662897df65 (diff)
[6.0.x] Fixed #36491 -- Fixed crash in ParallelTestRunner with --buffer.
Thanks Javier Buzzi and Adam Johnson for reviews. Co-authored-by: Simon Charette <charette.s@gmail.com> Backport of be581ff473e8ade6365975db2df602f295a4cb4b from main.
Diffstat (limited to 'django/test')
-rw-r--r--django/test/runner.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/django/test/runner.py b/django/test/runner.py
index 8902dea3e0..25089a6db1 100644
--- a/django/test/runner.py
+++ b/django/test/runner.py
@@ -566,6 +566,9 @@ class ParallelTestSuite(unittest.TestSuite):
(self.runner_class, index, subsuite, self.failfast, self.buffer)
for index, subsuite in enumerate(self.subsuites)
]
+ # Don't buffer in the main process to avoid error propagation issues.
+ result.buffer = False
+
test_results = pool.imap_unordered(self.run_subsuite.__func__, args)
while True: