mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Make mysql's CursorWrapper a contextmanager.
This commit is contained in:
committed by
Aymeric Augustin
parent
788cde326a
commit
e1d839237f
@@ -725,7 +725,7 @@ class DatabaseConnectionHandlingTests(TransactionTestCase):
|
||||
# request_finished signal.
|
||||
response = self.client.get('/')
|
||||
# Make sure there is an open connection
|
||||
self.connection.ensure_connection()
|
||||
connection.ensure_connection()
|
||||
connection.enter_transaction_management()
|
||||
signals.request_finished.send(sender=response._handler_class)
|
||||
self.assertEqual(len(connection.transaction_state), 0)
|
||||
|
||||
Reference in New Issue
Block a user