#33891: TypeError when trying to run tests in parallel
---------------------------------------------+------------------------
Reporter: kevinrenskers | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: 4.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
---------------------------------------------+------------------------
After updating to Django 4.1 I can no longer run my tests in parallel. I
get seemingly endless errors in my terminal.
{{{
(env) $ ./manage.py test --parallel
Found 124 test(s).
Creating test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
System check identified no issues (0 silenced).
Process SpawnPoolWorker-7:
Process SpawnPoolWorker-2:
Process SpawnPoolWorker-6:
Process SpawnPoolWorker-3:
Process SpawnPoolWorker-1:
Process SpawnPoolWorker-8:
Process SpawnPoolWorker-5:
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
File
"/opt/homebrew/Cellar/[email protected]/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/process.py",
line 315, in _bootstrap
self.run()
File
"/opt/homebrew/Cellar/[email protected]/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/process.py",
line 108, in run
self._target(*self._args, **self._kwargs)
File
"/opt/homebrew/Cellar/[email protected]/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py",
line 109, in worker
initializer(*initargs)
File
"/opt/homebrew/Cellar/[email protected]/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/process.py",
line 315, in _bootstrap
self.run()
File "/Users/kevin/Workspace/cn-django/env/lib/python3.10/site-
packages/django/test/runner.py", line 420, in _init_worker
process_setup(*process_setup_args)
File
"/opt/homebrew/Cellar/[email protected]/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/process.py",
line 108, in run
self._target(*self._args, **self._kwargs)
File
"/opt/homebrew/Cellar/[email protected]/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py",
line 109, in worker
initializer(*initargs)
File
"/opt/homebrew/Cellar/[email protected]/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/process.py",
line 315, in _bootstrap
self.run()
File
"/opt/homebrew/Cellar/[email protected]/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/process.py",
line 315, in _bootstrap
self.run()
File "/Users/kevin/Workspace/cn-django/env/lib/python3.10/site-
packages/django/test/runner.py", line 420, in _init_worker
process_setup(*process_setup_args)
Traceback (most recent call last):
TypeError: ParallelTestSuite.process_setup() missing 1 required positional
argument: 'self'
}}}
That traceback and error then keeps repeating.
If I run the tests just with `./manage.py test`, everything works fine.
--
Ticket URL: <https://code.djangoproject.com/ticket/33891>
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/0107018265055c68-fbd3d469-4cd3-42dd-957e-67f78c8183f9-000000%40eu-central-1.amazonses.com.