]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merged revisions 81691 via svnmerge from
authorSenthil Kumaran <orsenthil@gmail.com>
Fri, 4 Jun 2010 17:20:13 +0000 (17:20 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Fri, 4 Jun 2010 17:20:13 +0000 (17:20 +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 cc3f590b03a5108b1381d5cf6fa70514bb6e8b9b..730e8852a1d0b883481cdf7b870f39f54d4e2dc6 100644 (file)
@@ -222,7 +222,7 @@ class BasicTest(TestCase):
         self.assertEquals(resp.read(), '')
         self.assertEquals(resp.status, 200)
         self.assertEquals(resp.reason, 'OK')
-        resp.close()
+        self.assertTrue(resp.isclosed())
 
     def test_negative_content_length(self):
         sock = FakeSocket('HTTP/1.1 200 OK\r\n'