From cc4d03c62eb12d5bdfde813f8a09c6d355670a52 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Fri, 15 Dec 2023 19:11:25 +0000 Subject: [PATCH] close unremoved connections (pool already removed the connection) --- vcr/patch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vcr/patch.py b/vcr/patch.py index 68701a3..c373641 100644 --- a/vcr/patch.py +++ b/vcr/patch.py @@ -387,6 +387,8 @@ class ConnectionRemover: readd_connections.append(connection) for connection in readd_connections: pool._put_conn(connection) + for connection in connections: + connection.close() def reset_patchers():