diff options
author | Guido van Rossum <guido@python.org> | 2007-05-15 21:10:24 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-15 21:10:24 (GMT) |
commit | ea0ebd807507e94d06ed2ff046f5bb6693400ecd (patch) | |
tree | 34b6795135912426d2b962e1af161a8c579923da /Lib/test/string_tests.py | |
parent | 2be161dcfa531b0e2f3f9887e198be59f477854e (diff) | |
download | cpython-ea0ebd807507e94d06ed2ff046f5bb6693400ecd.zip cpython-ea0ebd807507e94d06ed2ff046f5bb6693400ecd.tar.gz cpython-ea0ebd807507e94d06ed2ff046f5bb6693400ecd.tar.bz2 |
Make test_str.py pass.
Diffstat (limited to 'Lib/test/string_tests.py')
-rw-r--r-- | Lib/test/string_tests.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py index f2c9579..53a3ddb 100644 --- a/Lib/test/string_tests.py +++ b/Lib/test/string_tests.py @@ -1102,10 +1102,10 @@ class MixinStrUserStringTest: if test_support.have_unicode: def test_encoding_decoding(self): - codecs = [('rot13', 'uryyb jbeyq'), - ('base64', 'aGVsbG8gd29ybGQ=\n'), - ('hex', '68656c6c6f20776f726c64'), - ('uu', 'begin 666 <data>\n+:&5L;&\\@=V]R;&0 \n \nend\n')] + codecs = [('rot13', b'uryyb jbeyq'), + ('base64', b'aGVsbG8gd29ybGQ=\n'), + ('hex', b'68656c6c6f20776f726c64'), + ('uu', b'begin 666 <data>\n+:&5L;&\\@=V]R;&0 \n \nend\n')] for encoding, data in codecs: self.checkequal(data, 'hello world', 'encode', encoding) self.checkequal('hello world', data, 'decode', encoding) @@ -1115,7 +1115,7 @@ class MixinStrUserStringTest: except ImportError: pass else: - data = 'x\x9c\xcbH\xcd\xc9\xc9W(\xcf/\xcaI\x01\x00\x1a\x0b\x04]' + data = b'x\x9c\xcbH\xcd\xc9\xc9W(\xcf/\xcaI\x01\x00\x1a\x0b\x04]' self.checkequal(data, 'hello world', 'encode', 'zlib') self.checkequal('hello world', data, 'decode', 'zlib') |