{{{
$ ./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/pyt...@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/pyt...@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/pyt...@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/pyt...@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 <module>
from criticalnotes.auth.models import User
File "/Users/kevin/Workspace/cn-django/criticalnotes/auth/models.py",
line 10, in <module>
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/34010>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: Carlton Gibson (added)
Comment:
I'm confused you
[https://github.com/django/django/pull/15911#issuecomment-1204857977
confirmed] that d4db417c8e6935222d198925dd4c5ac1ca737909 works for you.
Can you provide a sample project?
--
Ticket URL: <https://code.djangoproject.com/ticket/34010#comment:1>
Comment (by Kevin Renskers):
Replying to [comment:1 Mariusz Felisiak]:
> I'm confused you
[https://github.com/django/django/pull/15911#issuecomment-1204857977
confirmed] that d4db417c8e6935222d198925dd4c5ac1ca737909 works for you.
Can you provide a sample project?
I'm not sure why that seemed to work. Maybe I made a mistake updating
Django to the commit with the fix, or maybe I ran the tests without the
parallel flag 🤔
I can email you a closed source project, if it won't be shared with other
people. Just let me know where to send the project.
--
Ticket URL: <https://code.djangoproject.com/ticket/34010#comment:2>