summaryrefslogtreecommitdiff
path: root/django/test
diff options
context:
space:
mode:
Diffstat (limited to 'django/test')
-rw-r--r--django/test/runner.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/test/runner.py b/django/test/runner.py
index 89bb6cf1fc..fe30d2289b 100644
--- a/django/test/runner.py
+++ b/django/test/runner.py
@@ -492,6 +492,7 @@ class ParallelTestSuite(unittest.TestSuite):
Even with tblib, errors may still occur for dynamically created
exception classes which cannot be unpickled.
"""
+ self.initialize_suite()
counter = multiprocessing.Value(ctypes.c_int, 0)
pool = multiprocessing.Pool(
processes=self.processes,
@@ -962,8 +963,6 @@ class DiscoverRunner:
def run_suite(self, suite, **kwargs):
kwargs = self.get_test_runner_kwargs()
runner = self.test_runner(**kwargs)
- if hasattr(suite, "initialize_suite"):
- suite.initialize_suite()
try:
return runner.run(suite)
finally: