#33719: Running tests in parallel throws exceptions.
-----------------------------------+------------------------------------
Reporter: Pēteris Caune | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: 4.1
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Comment (by Mariusz Felisiak):
It looks that `initializer` was change unintentionally, the following diff
fixed it for me:
{{{#!diff
diff --git a/django/test/runner.py b/django/test/runner.py
index fe30d2289b..77eb68fe65 100644
--- a/django/test/runner.py
+++ b/django/test/runner.py
@@ -496,7 +496,7 @@ class ParallelTestSuite(unittest.TestSuite):
counter = multiprocessing.Value(ctypes.c_int, 0)
pool = multiprocessing.Pool(
processes=self.processes,
- initializer=self.init_worker,
+ initializer=self.init_worker.__func__,
initargs=[
counter,
self.initial_settings,
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33719#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070180d64e9542-b3b2c029-22e5-41ed-9db6-3fa8ee10c896-000000%40eu-central-1.amazonses.com.