diff options
| author | Shubham Singh <ssingh@multimediallc.com> | 2025-09-12 14:32:35 -0500 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2025-09-26 10:55:30 -0400 |
| commit | be581ff473e8ade6365975db2df602f295a4cb4b (patch) | |
| tree | ebdf83c41d1acc971d548cbbc22d35b2ab11ee28 /django | |
| parent | 1cb76b90e844308ae21d24115311bc354efe56e6 (diff) | |
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>
Diffstat (limited to 'django')
| -rw-r--r-- | django/test/runner.py | 3 |
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: |
