summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_httplib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-09-12 19:43:09 (GMT)
committerGuido van Rossum <guido@python.org>2007-09-12 19:43:09 (GMT)
commita00f1237069233ac116c40c88ead2f5684629459 (patch)
tree44d7954e8ef9d00624ccabfd0e82aa31a51b8f64 /Lib/test/test_httplib.py
parent138bcb569ea2a884acfa3c84bb64733ecea915e0 (diff)
downloadcpython-a00f1237069233ac116c40c88ead2f5684629459.zip
cpython-a00f1237069233ac116c40c88ead2f5684629459.tar.gz
cpython-a00f1237069233ac116c40c88ead2f5684629459.tar.bz2
Fix for bug 1148: str/bytes issue in httplib's _safe_read().
Diffstat (limited to 'Lib/test/test_httplib.py')
-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 632c2bc..9abeb61 100644
--- a/Lib/test/test_httplib.py
+++ b/Lib/test/test_httplib.py
@@ -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()