瀏覽代碼

Closed connection pool in clean up of test_allowed_database_copy_queries.

suraj 6 月之前
父節點
當前提交
8dd3f7d538
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      tests/test_utils/tests.py

+ 2 - 0
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):