[Python-checkins] r86007 - in python/branches/release27-maint: Lib/test/test_httpservers.py

brian.curtin python-checkins at python.org
Sun Oct 31 02:36:01 CEST 2010


Author: brian.curtin
Date: Sun Oct 31 02:36:01 2010
New Revision: 86007

Log:
Merged revisions 86006 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86006 | brian.curtin | 2010-10-30 19:34:23 -0500 (Sat, 30 Oct 2010) | 3 lines
  
  Fix ResourceWarning for an unclosed socket.
  test_return_header_keep_alive - Added a cleanup call for the socket.
........


Modified:
   python/branches/release27-maint/   (props changed)
   python/branches/release27-maint/Lib/test/test_httpservers.py

Modified: python/branches/release27-maint/Lib/test/test_httpservers.py
==============================================================================
--- python/branches/release27-maint/Lib/test/test_httpservers.py	(original)
+++ python/branches/release27-maint/Lib/test/test_httpservers.py	Sun Oct 31 02:36:01 2010
@@ -256,6 +256,7 @@
         res = self.con.getresponse()
         self.assertEqual(res.getheader('Connection'), 'keep-alive')
         self.con.request('TEST', '/')
+        self.addCleanup(self.con.close)
 
     def test_internal_key_error(self):
         self.con.request('KEYERROR', '/')


More information about the Python-checkins mailing list