Loading tests/backends/tests.py +2 −0 Original line number Diff line number Diff line Loading @@ -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() Loading Loading
tests/backends/tests.py +2 −0 Original line number Diff line number Diff line Loading @@ -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() Loading