]> granicus.if.org Git - python/commitdiff
Merged revisions 81695 via svnmerge from
authorSenthil Kumaran <orsenthil@gmail.com>
Fri, 4 Jun 2010 17:31:11 +0000 (17:31 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Fri, 4 Jun 2010 17:31:11 +0000 (17:31 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r81695 | senthil.kumaran | 2010-06-04 22:57:11 +0530 (Fri, 04 Jun 2010) | 9 lines

  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.
  ........
................

Lib/test/test_httplib.py

index 98db2b77e59bdf7e7f5f621d19250b28e3b081af..f615c5db46f104206f09a6d5f7c3c6b038cb6420 100644 (file)
@@ -234,7 +234,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(