#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.

-- 
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/0107018b6d1a295b-7e7db809-bb04-47e9-b964-a2566aa2188f-000000%40eu-central-1.amazonses.com.

Reply via email to