summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-10-29 09:32:16 (GMT)
committerGeorg Brandl <georg@python.org>2006-10-29 09:32:16 (GMT)
commit5b4e1c2530636eab196fb98ea8f49389ff419e28 (patch)
tree7036d4fca44e24222c7a813b100030f6f219de16 /Lib
parentfacd273198689d9c083056e55fca95c1db348d0e (diff)
downloadcpython-5b4e1c2530636eab196fb98ea8f49389ff419e28.zip
cpython-5b4e1c2530636eab196fb98ea8f49389ff419e28.tar.gz
cpython-5b4e1c2530636eab196fb98ea8f49389ff419e28.tar.bz2
Fix the new EncodedFile test to work with big endian platforms.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_codecs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py
index 39d4206..fa52033 100644
--- a/Lib/test/test_codecs.py
+++ b/Lib/test/test_codecs.py
@@ -914,8 +914,8 @@ 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')
- self.assertEquals(ef.read(), '\xff\xfe\\\xd5\n\x00\x00\xae')
+ ef = codecs.EncodedFile(f, 'utf-16-le', 'utf-8')
+ self.assertEquals(ef.read(), '\\\xd5\n\x00\x00\xae')
f = StringIO.StringIO()
ef = codecs.EncodedFile(f, 'utf-8', 'latin1')