I use MySQL as my default database, and I just used this database in unit 
tests.


But he used all my database connections while executing the 
"connections_support_transactions" function.

This caused all my data in MySQL initialization to be clear.


I modified the code of TestCase to this way.

https://gist.github.com/elfgzp/4b74a4b0860f3cecba17c56979e8e116



*I want to know if this is a bug.*


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/527bec75-b0cd-4f59-9710-24e80735465a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to