#32409: TestCase async tests are not transaction-aware
-------------------------------------+-------------------------------------
     Reporter:  David                |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Testing framework    |                  Version:  3.1
     Severity:  Normal               |               Resolution:
     Keywords:  TestCase, async,     |             Triage Stage:  Accepted
  transaction                        |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Andrew Godwin):

 I'm not sure quite why this is happening - any recent release of `asgiref`
 ensures that every sync_to_async call runs in the same thread as we now
 default thread-sensitive mode to on; precisely to stop this kind of
 behaviour.

 Can you verify you're seeing this with the most recent asgiref release?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32409#comment:9>
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/064.0e72ff5af8b5ac2454b43f7e7bc06fdd%40djangoproject.com.

Reply via email to