diff options
Diffstat (limited to 'tests/requests')
| -rw-r--r-- | tests/requests/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/requests/tests.py b/tests/requests/tests.py index bb56369371..3e594376aa 100644 --- a/tests/requests/tests.py +++ b/tests/requests/tests.py @@ -725,7 +725,7 @@ class DatabaseConnectionHandlingTests(TransactionTestCase): # request_finished signal. response = self.client.get('/') # Make sure there is an open connection - connection.cursor() + self.connection.ensure_connection() connection.enter_transaction_management() signals.request_finished.send(sender=response._handler_class) self.assertEqual(len(connection.transaction_state), 0) |
