New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_io is broken on UCS4 #49166
Comments
====================================================================== 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' ====================================================================== Traceback (most recent call last):
File "/temp/python/py3k/Lib/test/test_io.py", line 874, in testNewlines
self.assertEquals(got_line, exp_line)
AssertionError: '\U00750000\U006e0000\U00690000\U00780000\n' != 'unix\n' ====================================================================== 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' |
Ouch. What platform is this on? |
MacOS 10.4 PPC |
This is because of the new utf16 decoding code. I'll post a patch soon. |
Can you try with this one? PS: do we have a buildbot with such a configuration? |
Benjamin confirmed to me that the patch is ok, committing. |
In r68537. |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: