summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-06-04 17:17:09 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-06-04 17:17:09 (GMT)
commitfb6950140ac46dfbd48361057e76eaf42d48e605 (patch)
treed3eebf06d51b21097cc83c25742d3623181f395e /Lib
parentdfaced5d3df73cccaf56733c1733c9c8340ca04d (diff)
downloadcpython-fb6950140ac46dfbd48361057e76eaf42d48e605.zip
cpython-fb6950140ac46dfbd48361057e76eaf42d48e605.tar.gz
cpython-fb6950140ac46dfbd48361057e76eaf42d48e605.tar.bz2
test verifying the resp object is closed for HEAD response.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_httplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py
index a618c43..2d0b8e7 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'