mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +00:00
Restored a test broken by overzealous PEP8 cleanup
This commit is contained in:
parent
8ac63d63ca
commit
fda06d6552
@ -388,6 +388,8 @@ class PostgresNewConnectionTests(TestCase):
|
|||||||
new_connection = new_connections[DEFAULT_DB_ALIAS]
|
new_connection = new_connections[DEFAULT_DB_ALIAS]
|
||||||
try:
|
try:
|
||||||
new_connection.settings_dict['AUTOCOMMIT'] = False
|
new_connection.settings_dict['AUTOCOMMIT'] = False
|
||||||
|
# Open a database connection.
|
||||||
|
new_connection.cursor()
|
||||||
self.assertFalse(new_connection.get_autocommit())
|
self.assertFalse(new_connection.get_autocommit())
|
||||||
finally:
|
finally:
|
||||||
new_connection.close()
|
new_connection.close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user