From 8dd3f7d538320f6f94210e4944fc8d39c4a9967b Mon Sep 17 00:00:00 2001 From: suraj Date: Fri, 13 Sep 2024 11:13:50 +0200 Subject: [PATCH] Closed connection pool in clean up of test_allowed_database_copy_queries. --- tests/test_utils/tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_utils/tests.py b/tests/test_utils/tests.py index 60b65e309a3..1110466fcfd 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):