From: Georg Brandl Date: Sun, 29 Oct 2006 09:32:19 +0000 (+0000) Subject: Fix the new EncodedFile test to work with big endian platforms. X-Git-Tag: v2.5.1c1~279 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8205a11882161968fe9b67871d4000c4b3efb08;p=python Fix the new EncodedFile test to work with big endian platforms. (backport from rev. 52527) --- 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()