diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-06-30 09:22:09 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-06-30 09:22:09 (GMT) |
commit | dd5a86070cdd636dd0def3fd5900b0b8405f0b6b (patch) | |
tree | c24e47916b4f904bcffa0e75c864a60a9fbc19b9 /Lib/test/test_httplib.py | |
parent | 486364b821ad25bc33e7247539d2c48a9e3b7051 (diff) | |
download | cpython-dd5a86070cdd636dd0def3fd5900b0b8405f0b6b.zip cpython-dd5a86070cdd636dd0def3fd5900b0b8405f0b6b.tar.gz cpython-dd5a86070cdd636dd0def3fd5900b0b8405f0b6b.tar.bz2 |
Fix test_httplib.
Diffstat (limited to 'Lib/test/test_httplib.py')
-rw-r--r-- | Lib/test/test_httplib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py index 9238eea..d18ea2b 100644 --- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py @@ -11,7 +11,7 @@ class FakeSocket: def __init__(self, text, fileclass=StringIO.StringIO): self.text = text self.fileclass = fileclass - self.data = '' + self.data = b'' def sendall(self, data): self.data += data @@ -54,7 +54,7 @@ class HeaderTests(TestCase): kv = item.split(':') if len(kv) > 1: # item is a 'Key: Value' header string - lcKey = kv[0].lower() + lcKey = kv[0].decode('ascii').lower() self.count.setdefault(lcKey, 0) self.count[lcKey] += 1 list.append(self, item) |