2016-12-15 | Paul Boddie | raw files shortlog changelog graph | Make sure that the test starts out using a byte sequence. | |
tests/iconv.py (file) |
1.1 --- a/tests/iconv.py Thu Dec 15 01:36:30 2016 +0100 1.2 +++ b/tests/iconv.py Thu Dec 15 01:39:45 2016 +0100 1.3 @@ -8,7 +8,7 @@ 1.4 from_utf16 = Converter("UTF-16", "ISO-8859-1") 1.5 1.6 try: 1.7 - iso = "זרו" 1.8 + iso = b"זרו" 1.9 print iso # זרו 1.10 to_utf8.feed(iso) 1.11 utf8 = str(to_utf8)