diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-01-12 21:13:32 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-01-12 21:13:32 +0100 |
| commit | 720c6d3a44f5a723854e5eda4e963155b136582f (patch) | |
| tree | bc8caa923d3e09e5141e1900dfd72c78cc63456b | |
| parent | fbe1abac4af3a7fc138bd176471e36acb1070a58 (diff) | |
Restored a test broken by overzealous PEP8 cleanup
| -rw-r--r-- | tests/backends/tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/backends/tests.py b/tests/backends/tests.py index 611aa2cb6d..bb785a22de 100644 --- a/tests/backends/tests.py +++ b/tests/backends/tests.py @@ -388,6 +388,8 @@ class PostgresNewConnectionTests(TestCase): new_connection = new_connections[DEFAULT_DB_ALIAS] try: new_connection.settings_dict['AUTOCOMMIT'] = False + # Open a database connection. + new_connection.cursor() self.assertFalse(new_connection.get_autocommit()) finally: new_connection.close() |
