Skip to content

Commit b01016a

Browse files
Clear the urllib3.PoolManager pool after completing a test (#314)
This prevents running out of sockets with very large test suites.
1 parent 5e76332 commit b01016a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gabbi/httpclient.py

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def request(self, absolute_uri, method, body, headers, redirect):
5151
headers = response.headers
5252
headers['status'] = str(status)
5353
headers['reason'] = reason
54+
55+
self.clear()
5456
return headers, content
5557

5658

0 commit comments

Comments
 (0)