]> granicus.if.org Git - python/commit
Fix tests to use bytes() where the actual sockets return bytes().
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 3 Aug 2007 20:56:14 +0000 (20:56 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 3 Aug 2007 20:56:14 +0000 (20:56 +0000)
commit8fff7924a4217dc73de2042168a0eda7243e26d7
treecfa2d115a3a70144599501a129e560d0246c2015
parent9648d62fd58d9ae9356ab717e3d594a61cb4782a
Fix tests to use bytes() where the actual sockets return bytes().

Use io.BytesIO() instead of StringIO.StringIO().  FakeSocket still
accepts regular strings and coverts them to bytes internally.
Lib/test/test_httplib.py