summaryrefslogtreecommitdiff
path: root/tests/test_utils
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_utils')
-rw-r--r--tests/test_utils/tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_utils/tests.py b/tests/test_utils/tests.py
index 60b65e309a..1110466fcf 100644
--- a/tests/test_utils/tests.py
+++ b/tests/test_utils/tests.py
@@ -2186,6 +2186,8 @@ class AllowedDatabaseQueriesTests(SimpleTestCase):
finally:
new_connection.validate_thread_sharing()
new_connection._close()
+ if hasattr(new_connection, "close_pool"):
+ new_connection.close_pool()
class DatabaseAliasTests(SimpleTestCase):