diff options
| author | Senthil Kumaran <orsenthil@gmail.com> | 2010-06-04 17:27:11 (GMT) |
|---|---|---|
| committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-06-04 17:27:11 (GMT) |
| commit | 0b99883547ecf03aad0eff7f2fd4a484215b1c52 (patch) | |
| tree | b3bebc0a4822e8eb125406580058543c351b7cd5 /Lib/test/test_httplib.py | |
| parent | ec78d0ae0e064d1ee9f2fa418d7fa3adba717e48 (diff) | |
| download | cpython-0b99883547ecf03aad0eff7f2fd4a484215b1c52.zip cpython-0b99883547ecf03aad0eff7f2fd4a484215b1c52.tar.gz cpython-0b99883547ecf03aad0eff7f2fd4a484215b1c52.tar.bz2 | |
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.
........
Diffstat (limited to 'Lib/test/test_httplib.py')
| -rw-r--r-- | Lib/test/test_httplib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py index 6b09e07..cf3a402 100644 --- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py @@ -239,7 +239,7 @@ class BasicTest(TestCase): self.assertEquals(resp.read(), b'') self.assertEquals(resp.status, 200) self.assertEquals(resp.reason, 'OK') - resp.close() + self.assertTrue(resp.isclosed()) def test_negative_content_length(self): sock = FakeSocket( |
