mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Fix for bug 1148: str/bytes issue in httplib's _safe_read().
This commit is contained in:
parent
138bcb569e
commit
a00f123706
2 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue