Fix for bug 1148: str/bytes issue in httplib's _safe_read().

This commit is contained in:
Guido van Rossum 2007-09-12 19:43:09 +00:00
parent 138bcb569e
commit a00f123706
2 changed files with 2 additions and 2 deletions

View file

@ -133,7 +133,7 @@ class BasicTest(TestCase):
NoEOFStringIO)
resp = httplib.HTTPResponse(sock, method="HEAD")
resp.begin()
if resp.read() != "":
if resp.read():
self.fail("Did not expect response from HEAD request")
resp.close()