From: Victor Stinner Date: Mon, 9 Dec 2013 00:15:10 +0000 (+0100) Subject: Fix #19830: Fix a ResourceWarning in test_poplib. X-Git-Tag: v3.4.0b2~288 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=28dd6deca8afd79cd8c33731f01c108dd11257ab;p=python Fix #19830: Fix a ResourceWarning in test_poplib. Patch written by Vajrasky Kok. --- diff --git a/Lib/test/test_poplib.py b/Lib/test/test_poplib.py index 31f8a3c85c..eac77aa6ff 100644 --- a/Lib/test/test_poplib.py +++ b/Lib/test/test_poplib.py @@ -421,7 +421,7 @@ class TestPOP3_TLSClass(TestPOP3Class): # happens in the test_too_long_lines case; the overlong # response will be treated as response to QUIT and raise # this exception - pass + self.client.close() self.server.stop() def test_stls(self):