mirror of https://github.com/python/cpython
I thought I had already fixed this error in the test.
This commit is contained in:
parent
c68d2cc3f2
commit
f96b162b68
|
@ -916,7 +916,7 @@ class EncodedFileTest(unittest.TestCase):
|
||||||
def test_basic(self):
|
def test_basic(self):
|
||||||
f = StringIO.StringIO('\xed\x95\x9c\n\xea\xb8\x80')
|
f = StringIO.StringIO('\xed\x95\x9c\n\xea\xb8\x80')
|
||||||
ef = codecs.EncodedFile(f, 'utf-16-le', 'utf-8')
|
ef = codecs.EncodedFile(f, 'utf-16-le', 'utf-8')
|
||||||
self.assertEquals(ef.read(), '\xff\xfe\\\xd5\n\x00\x00\xae')
|
self.assertEquals(ef.read(), '\\\xd5\n\x00\x00\xae')
|
||||||
|
|
||||||
f = StringIO.StringIO()
|
f = StringIO.StringIO()
|
||||||
ef = codecs.EncodedFile(f, 'utf-8', 'latin1')
|
ef = codecs.EncodedFile(f, 'utf-8', 'latin1')
|
||||||
|
|
Loading…
Reference in New Issue