diff options
author | Guido van Rossum <guido@python.org> | 2007-08-29 02:00:20 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-29 02:00:20 (GMT) |
commit | 022c4746791d467d9a28576fd913cdb889cdebe1 (patch) | |
tree | 2e46f4b908839f9ecb3599069fa719af74237ff8 | |
parent | 70d0ddab53208ee99af56610bda7302c4940e1c8 (diff) | |
download | cpython-022c4746791d467d9a28576fd913cdb889cdebe1.zip cpython-022c4746791d467d9a28576fd913cdb889cdebe1.tar.gz cpython-022c4746791d467d9a28576fd913cdb889cdebe1.tar.bz2 |
Make test_httplib pass.
-rw-r--r-- | Lib/test/test_httplib.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py index 2d61c46..d9b3b82 100644 --- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py @@ -53,7 +53,7 @@ class HeaderTests(TestCase): def __init__(self): self.count = {} def append(self, item): - kv = item.split(':') + kv = item.split(b':') if len(kv) > 1: # item is a 'Key: Value' header string lcKey = kv[0].decode('ascii').lower() @@ -138,8 +138,8 @@ class BasicTest(TestCase): resp.close() def test_send_file(self): - expected = ('GET /foo HTTP/1.1\r\nHost: example.com\r\n' - 'Accept-Encoding: identity\r\nContent-Length:') + expected = (b'GET /foo HTTP/1.1\r\nHost: example.com\r\n' + b'Accept-Encoding: identity\r\nContent-Length:') body = open(__file__, 'rb') conn = httplib.HTTPConnection('example.com') |