summaryrefslogtreecommitdiff
path: root/Lib/test/test_codecs.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-10-29 09:32:19 +0000
committerGeorg Brandl <georg@python.org>2006-10-29 09:32:19 +0000
commitb8205a11882161968fe9b67871d4000c4b3efb08 (patch)
tree741c2e3e40b1a33439224bd1ff179a5fa7812c40 /Lib/test/test_codecs.py
parent2527f7fee0f20946aa3162fae4ffe6181aee1eb1 (diff)
downloadcpython-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.py2
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()