Kaydet (Commit) b8205a11 authored tarafından Georg Brandl's avatar Georg Brandl

Fix the new EncodedFile test to work with big endian platforms.

 (backport from rev. 52527)
üst 2527f7fe
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment