diff options
author | Guido van Rossum <guido@python.org> | 2007-09-12 19:43:09 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-09-12 19:43:09 (GMT) |
commit | a00f1237069233ac116c40c88ead2f5684629459 (patch) | |
tree | 44d7954e8ef9d00624ccabfd0e82aa31a51b8f64 /Lib/test/test_httplib.py | |
parent | 138bcb569ea2a884acfa3c84bb64733ecea915e0 (diff) | |
download | cpython-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.py | 2 |
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() |