From: Senthil Kumaran Date: Fri, 4 Jun 2010 17:17:09 +0000 (+0000) Subject: test verifying the resp object is closed for HEAD response. X-Git-Tag: v2.7rc1~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb6950140ac46dfbd48361057e76eaf42d48e605;p=python 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 a618c43e9e..2d0b8e750b 100644 --- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py @@ -227,7 +227,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'