summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2014-01-12 21:40:22 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2014-01-12 21:40:22 +0100
commit225a6ed2cfecc609760a36c3b20369daeec52e07 (patch)
treed5290586da2f9954fa5912e937d150ad837e3627
parent720c6d3a44f5a723854e5eda4e963155b136582f (diff)
Fixed a test that was failing with PostGIS.
Fixed #21452 again. Forward-port of 18d75e07 from stable/1.6.x.
-rw-r--r--tests/backends/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/backends/tests.py b/tests/backends/tests.py
index bb785a22de..0ff3ad0bba 100644
--- a/tests/backends/tests.py
+++ b/tests/backends/tests.py
@@ -384,10 +384,10 @@ class PostgresNewConnectionTests(TestCase):
after setting the time zone when AUTOCOMMIT is False (#21452).
"""
databases = copy.deepcopy(settings.DATABASES)
+ databases[DEFAULT_DB_ALIAS]['AUTOCOMMIT'] = False
new_connections = ConnectionHandler(databases)
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())