diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-06-07 17:16:49 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-06-07 17:16:49 +0200 |
| commit | fc31319752945d4d39f70c8278ecd42af240bc64 (patch) | |
| tree | fabffa0f853802f51613a83041529a636c396fb9 | |
| parent | 58de495c54c203dfa838538fb6ca46187120f4e6 (diff) | |
Fixed test again. Refs #12581.
| -rw-r--r-- | tests/backends/tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/backends/tests.py b/tests/backends/tests.py index 9d3e4a4bf1..a40a6156e0 100644 --- a/tests/backends/tests.py +++ b/tests/backends/tests.py @@ -701,6 +701,11 @@ class BackendTestCase(TestCase): new_connections = ConnectionHandler(settings.DATABASES) 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: with new_connection.cursor() as cursor: cursor.execute("SELECT 1" + new_connection.features.bare_select_suffix) |
