From 411ef48e5bca1ed66a2e4dd7ecd8695e2bf6c94e Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Fri, 22 Jun 2018 16:49:03 -0700 Subject: Stop leaking quite so many connections While investigating the failures when you move func tests to py3, I noticed a whole bunch of ResourceWarning: unclosed noise. This should fix it. While we're at it, make get_capabilities less stupid. Change-Id: I3913e9334090b04a78143e0b70f621aad30fc642 Related-Change: I86d24104033b490a35178fc504d88c1e4a566628 --- tests/functional/test_swiftclient.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/functional/test_swiftclient.py') diff --git a/tests/functional/test_swiftclient.py b/tests/functional/test_swiftclient.py index 0380d96..1d76a8d 100644 --- a/tests/functional/test_swiftclient.py +++ b/tests/functional/test_swiftclient.py @@ -108,6 +108,7 @@ class TestFunctional(unittest.TestCase): self.conn.delete_container(container) except swiftclient.ClientException: pass + self.conn.close() def _check_account_headers(self, headers): headers_to_check = [ -- cgit v1.2.1