diff options
| author | Michael Manfre <mmanfre@gmail.com> | 2014-02-02 16:38:28 -0500 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-02-02 22:43:53 +0100 |
| commit | e1d839237f7ce38ef078b7f09cc3a1aeaacc02f0 (patch) | |
| tree | 89ffc517d7da805038b6c9be14fe6943090b2aab /tests | |
| parent | 788cde326ae3c7bf37f98432c2994d1fb94fa41e (diff) | |
Make mysql's CursorWrapper a contextmanager.
Diffstat (limited to 'tests')
| -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 3e594376aa..175554e871 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 - 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) |
