Kaydet (Commit) fc313197 authored tarafından Aymeric Augustin's avatar Aymeric Augustin

Fixed test again. Refs #12581.

üst 58de495c
...@@ -701,6 +701,11 @@ class BackendTestCase(TestCase): ...@@ -701,6 +701,11 @@ class BackendTestCase(TestCase):
new_connections = ConnectionHandler(settings.DATABASES) new_connections = ConnectionHandler(settings.DATABASES)
new_connection = new_connections[DEFAULT_DB_ALIAS] new_connection = new_connections[DEFAULT_DB_ALIAS]
# Initialize the connection and clear initialization statements.
with new_connection.cursor():
pass
new_connection.queries_log.clear()
try: try:
with new_connection.cursor() as cursor: with new_connection.cursor() as cursor:
cursor.execute("SELECT 1" + new_connection.features.bare_select_suffix) cursor.execute("SELECT 1" + new_connection.features.bare_select_suffix)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment