[Python-checkins] cpython: Fix #19830: Fix a ResourceWarning in test_poplib.

victor.stinner python-checkins at python.org
Mon Dec 9 01:15:33 CET 2013


http://hg.python.org/cpython/rev/1e3c7153a14d
changeset:   87845:1e3c7153a14d
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Mon Dec 09 01:15:10 2013 +0100
summary:
  Fix #19830: Fix a ResourceWarning in test_poplib.
Patch written by Vajrasky Kok.

files:
  Lib/test/test_poplib.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_poplib.py b/Lib/test/test_poplib.py
--- a/Lib/test/test_poplib.py
+++ b/Lib/test/test_poplib.py
@@ -421,7 +421,7 @@
                 # 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):

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list