Merged revisions 81691 via svnmerge from
authorSenthil Kumaran <orsenthil@gmail.com>
Fri, 4 Jun 2010 17:27:11 +0000 (17:27 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Fri, 4 Jun 2010 17:27:11 +0000 (17:27 +0000)
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.
........

Lib/test/test_httplib.py

index 6b09e072e4948aac5fd9e88b0cea1629204e0091..cf3a4024af4b88f51052047a7acaabaa84cf505c 100644 (file)
@@ -239,7 +239,7 @@ class BasicTest(TestCase):
         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(