]> granicus.if.org Git - python/commitdiff
Fix the new EncodedFile test to work with big endian platforms.
authorGeorg Brandl <georg@python.org>
Sun, 29 Oct 2006 09:32:19 +0000 (09:32 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 29 Oct 2006 09:32:19 +0000 (09:32 +0000)
 (backport from rev. 52527)

Lib/test/test_codecs.py

index 90340bbcb047e5594c94ef05c2d7ba39becbc399..60b8a7222c17994d5151dcd3cc45bf57864f4ada 100644 (file)
@@ -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()