[Django] #34930: Parallel tests fail in python 3.11 and 3.12

9 views
Skip to first unread message

Django

unread,
Oct 26, 2023, 1:48:36 PM10/26/23
to django-...@googlegroups.com
#34930: Parallel tests fail in python 3.11 and 3.12
-------------------------------------+-------------------------------------
Reporter: Matt | Owner: nobody
Hegarty |
Type: Bug | Status: new
Component: Testing | Version: 4.2
framework | Keywords: pickle
Severity: Normal | _contextvars.Context _contextvars
Triage Stage: | Context
Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Parallel tests work in python3.10 but not in 3.11 or 3.12. Running tests
in non-parallel mode works fine.


{{{
./manage.py test --parallel
}}}


Error is:


{{{
TypeError: cannot pickle '_contextvars.Context' object
}}}


See attached stack trace.

- django 4.2.6

- python3.10.13 (parallel ok)
- python3.11.6 (parallel fails)
- python3.12.0 (parallel fails)

MacBook Pro Ventura 13.4.1

Similar to https://code.djangoproject.com/ticket/34010

The database is Postgres:13 running in a Docker container

--
Ticket URL: <https://code.djangoproject.com/ticket/34930>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Oct 26, 2023, 1:48:53 PM10/26/23
to django-...@googlegroups.com
#34930: Parallel tests fail in python 3.11 and 3.12
-------------------------------------+-------------------------------------
Reporter: Matt Hegarty | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: 4.2
Severity: Normal | Resolution:
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
-------------------------------------+-------------------------------------
Changes (by Matt Hegarty):

* Attachment "st.txt" added.

stack trace

Reply all
Reply to author
Forward
0 new messages