diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py index a618c43e9eb..2d0b8e750bd 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'