diff options
author | Georg Brandl <georg@python.org> | 2006-10-29 09:32:19 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-10-29 09:32:19 +0000 |
commit | b8205a11882161968fe9b67871d4000c4b3efb08 (patch) | |
tree | 741c2e3e40b1a33439224bd1ff179a5fa7812c40 /Lib/test/test_codecs.py | |
parent | 2527f7fee0f20946aa3162fae4ffe6181aee1eb1 (diff) | |
download | cpython-git-b8205a11882161968fe9b67871d4000c4b3efb08.tar.gz |
Fix the new EncodedFile test to work with big endian platforms.
(backport from rev. 52527)
Diffstat (limited to 'Lib/test/test_codecs.py')
-rw-r--r-- | Lib/test/test_codecs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py index 90340bbcb0..60b8a7222c 100644 --- a/Lib/test/test_codecs.py +++ b/Lib/test/test_codecs.py @@ -915,7 +915,7 @@ class EncodedFileTest(unittest.TestCase): def test_basic(self): f = StringIO.StringIO('\xed\x95\x9c\n\xea\xb8\x80') - ef = codecs.EncodedFile(f, 'utf-16', 'utf-8') + ef = codecs.EncodedFile(f, 'utf-16-le', 'utf-8') self.assertEquals(ef.read(), '\xff\xfe\\\xd5\n\x00\x00\xae') f = StringIO.StringIO() |