#31169: Allow parallel test runner to work with Windows/macOS `spawn` process
start
method.
-----------------------------------+------------------------------------
Reporter: Brandon Navra | Owner: nobody
Type: New feature | Status: new
Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Comment (by Peter Inglesby):
I ran into this while running the Django test suite, and when applying the
patch in [https://github.com/django/django/pull/12321 PR 12321], I get the
same problem with a different exception:
{{{
Traceback (most recent call last):
File
"/Users/inglesp/.pyenv/versions/3.8.0/lib/python3.8/multiprocessing/process.py",
line 313, in _bootstrap
self.run()
File
"/Users/inglesp/.pyenv/versions/3.8.0/lib/python3.8/multiprocessing/process.py",
line 108, in run
self._target(*self._args, **self._kwargs)
File
"/Users/inglesp/.pyenv/versions/3.8.0/lib/python3.8/multiprocessing/pool.py",
line 114, in worker
task = get()
File
"/Users/inglesp/.pyenv/versions/3.8.0/lib/python3.8/multiprocessing/queues.py",
line 358, in get
return _ForkingPickler.loads(res)
File "/Users/inglesp/src/django/django/tests/fixtures_regress/tests.py",
line 18, in <module>
from .models import (
File
"/Users/inglesp/src/django/django/tests/fixtures_regress/models.py", line
1, in <module>
from django.contrib.auth.models import User
File "/Users/inglesp/src/django/django/django/contrib/auth/models.py",
line 3, in <module>
from django.contrib.contenttypes.models import ContentType
File
"/Users/inglesp/src/django/django/django/contrib/contenttypes/models.py",
line 133, in <module>
class ContentType(models.Model):
File "/Users/inglesp/src/django/django/django/db/models/base.py", line
113, in __new__
raise RuntimeError(
RuntimeError: Model class django.contrib.contenttypes.models.ContentType
doesn't declare an explicit app_label and isn't in an application in
INSTALLED_APPS.
}}}
I'm on OSX 10.15 with Python 3.8.
--
Ticket URL: <https://code.djangoproject.com/ticket/31169#comment:12>
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/068.e50ee6018b9810ddfc09e095703da071%40djangoproject.com.