#34930: Parallel tests fail on Python 3.11+ and django 4.1.0+ when
IsolatedAsyncioTestCase is used
-------------------------------------+-------------------------------------
Reporter: Matt Hegarty | Owner: nobody
Type: Bug | Status: closed
Component: Testing framework | Version: 4.2
Severity: Normal | Resolution: needsinfo
Keywords: pickle | Triage Stage:
_contextvars.Context _contextvars | Unreviewed
Context |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Carlton Gibson):
Replying to [comment:12 Matt Hegarty]:
> Just to clarify, the tests pass with any version of Django if you use
python3.10 (tested on MacOS and Ubuntu). They fail when running 3.11 or
3.12.
I guess the question then is [https://docs.python.org/3/whatsnew/3.11.html
what change led to this in Python 3.11]?
The addition of `IsolatedAsyncioTestCase.enterAsyncContext()` is a
[https://docs.python.org/3/whatsnew/3.11.html#unittest likely candidate].
But, still, use of `IsolatedAsyncioTestCase` has never been supported by
Django, or tested in its test suite, so any success prior to 3.11 would be
coincidental (leveraging undefined behaviour from Django's point of view).
Adding such support would still be a new feature.
--
Ticket URL: <https://code.djangoproject.com/ticket/34930#comment:13>
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/0107018b71d3a6bb-f07db53e-63cf-4a9d-a3ac-1fa34a4e9d43-000000%40eu-central-1.amazonses.com.