[Python-checkins] r81695 - in python/branches/py3k: Lib/test/test_httplib.py

senthil.kumaran python-checkins at python.org
Fri Jun 4 19:27:11 CEST 2010


Author: senthil.kumaran
Date: Fri Jun  4 19:27:11 2010
New Revision: 81695

Log:
Merged revisions 81691 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81691 | senthil.kumaran | 2010-06-04 22:47:09 +0530 (Fri, 04 Jun 2010) | 3 lines
  
  test verifying the resp object is closed for HEAD response.
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Lib/test/test_httplib.py

Modified: python/branches/py3k/Lib/test/test_httplib.py
==============================================================================
--- python/branches/py3k/Lib/test/test_httplib.py	(original)
+++ python/branches/py3k/Lib/test/test_httplib.py	Fri Jun  4 19:27:11 2010
@@ -239,7 +239,7 @@
         self.assertEquals(resp.read(), b'')
         self.assertEquals(resp.status, 200)
         self.assertEquals(resp.reason, 'OK')
-        resp.close()
+        self.assertTrue(resp.isclosed())
 
     def test_negative_content_length(self):
         sock = FakeSocket(


More information about the Python-checkins mailing list