From: Senthil Kumaran Date: Fri, 4 Jun 2010 17:20:13 +0000 (+0000) Subject: Merged revisions 81691 via svnmerge from X-Git-Tag: v2.6.6rc1~215 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3bde59c7b081f8d7d3d3b0f7ed3491a8b21fe8eb;p=thirdparty%2FPython%2Fcpython.git 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. ........ --- diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py index cc3f590b03a5..730e8852a1d0 100644 --- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py @@ -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'