You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/pitrou'closed_at=<Date2009-01-11.23:58:15.351>created_at=<Date2009-01-11.21:53:45.432>labels= ['interpreter-core', 'type-bug', 'release-blocker']
title='test_io is broken on UCS4'updated_at=<Date2009-01-12.00:13:54.809>user='https://github.com/benjaminp'
Activity
benjaminp commentedon Jan 11, 2009
======================================================================
FAIL: testEncodedWrites (test.test_io.TextIOWrapperTest)
----------------------------------------------------------------------
Traceback (most recent call last): File "/temp/python/py3k/Lib/test/test_io.py", line 1082, in testEncodedWrites self.assertEquals(f.read(), data * 2) AssertionError: '\U00310000\U00320000\U00330000\U00340000\U00350000\U00360000\U00370000\U00380000\U00390000\U00300000\U00310000\U00320000\U00330000\U00340000\U00350000\U00360000\U00370000\U0038000090' != '12345678901234567890'======================================================================
FAIL: testNewlines (test.test_io.TextIOWrapperTest)
----------------------------------------------------------------------
======================================================================
FAIL: test_newline_decoder (test.test_io.TextIOWrapperTest)
----------------------------------------------------------------------
Traceback (most recent call last): File "/temp/python/py3k/Lib/test/test_io.py", line 1275, in test_newline_decoder self.check_newline_decoder(decoder, enc) File "/temp/python/py3k/Lib/test/test_io.py", line 1263, in check_newline_decoder self.assertEquals(decoder.decode("abc".encode(encoding)), "abc") AssertionError: '\U00610000\U00620000c' != 'abc'pitrou commentedon Jan 11, 2009
Ouch. What platform is this on?
benjaminp commentedon Jan 11, 2009
MacOS 10.4 PPC
pitrou commentedon Jan 11, 2009
This is because of the new utf16 decoding code. I'll post a patch soon.
pitrou commentedon Jan 11, 2009
Can you try with this one?
PS: do we have a buildbot with such a configuration?
pitrou commentedon Jan 11, 2009
Benjamin confirmed to me that the patch is ok, committing.
benjaminp commentedon Jan 12, 2009
In r68537.