]> granicus.if.org Git - python/commitdiff
Fix #19830: Fix a ResourceWarning in test_poplib.
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 9 Dec 2013 00:15:10 +0000 (01:15 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 9 Dec 2013 00:15:10 +0000 (01:15 +0100)
Patch written by Vajrasky Kok.

Lib/test/test_poplib.py

index 31f8a3c85c5569f1353286ed0f01dcc70e204316..eac77aa6ffe2a6d3a19a5fc543ab53afb6786574 100644 (file)
@@ -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):