﻿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
34930	Parallel tests fail on Python 3.11+ when IsolatedAsyncioTestCase is used	Matt Hegarty	nobody	"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"	Bug	closed	Testing framework	4.2	Normal	wontfix	pickle _contextvars.Context _contextvars Context	Carlton Gibson Mariusz Felisiak	Unreviewed	0	0	0	0	0	0
