id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 34010,Parallel tests don't work with spawn.,Kevin Renskers,Adam Johnson,"I've upgraded to Django 4.1.1 and parallel tests don't work, but now with a different error as what I got in 4.1 (see #33891). {{{ $ ./manage.py test --parallel Found 153 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-2: Traceback (most recent call last): File ""/opt/homebrew/Cellar/python@3.10/3.10.6_2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/process.py"", line 314, in _bootstrap self.run() File ""/opt/homebrew/Cellar/python@3.10/3.10.6_2/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/python@3.10/3.10.6_2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/pool.py"", line 114, in worker task = get() File ""/opt/homebrew/Cellar/python@3.10/3.10.6_2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/queues.py"", line 367, in get return _ForkingPickler.loads(res) File ""/Users/kevin/Workspace/cn-django/criticalnotes/auth/test_models.py"", line 5, in from criticalnotes.auth.models import User File ""/Users/kevin/Workspace/cn-django/criticalnotes/auth/models.py"", line 10, in class User(models.Model): File ""/Users/kevin/Workspace/cn-django/env/lib/python3.10/site-packages/django/db/models/base.py"", line 127, in __new__ app_config = apps.get_containing_app_config(module) File ""/Users/kevin/Workspace/cn-django/env/lib/python3.10/site-packages/django/apps/registry.py"", line 260, in get_containing_app_config self.check_apps_ready() File ""/Users/kevin/Workspace/cn-django/env/lib/python3.10/site-packages/django/apps/registry.py"", line 138, in check_apps_ready raise AppRegistryNotReady(""Apps aren't loaded yet."") django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. }}} (That error then repeat 26 times in my case). If I run the tests just with `./manage.py test`, everything works fine. ",Bug,closed,Testing framework,4.1,Release blocker,fixed,,Carlton Gibson David Smith,Ready for checkin,1,0,0,0,0,0