This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_io is broken on UCS4
Type: behavior Stage: resolved
Components: Interpreter Core Versions: Python 3.1
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: pitrou Nosy List: benjamin.peterson, pitrou
Priority: release blocker Keywords: patch

Created on 2009-01-11 21:53 by benjamin.peterson, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue4916.patch pitrou, 2009-01-11 23:03
Messages (7)
msg79630 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-01-11 21:53
======================================================================
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)
----------------------------------------------------------------------
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'

======================================================================
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'

----------------------------------------------------------------------
msg79632 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009-01-11 22:54
Ouch. What platform is this on?
msg79633 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-01-11 22:55
MacOS 10.4 PPC
msg79634 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009-01-11 22:59
This is because of the new utf16 decoding code. I'll post a patch soon.
msg79635 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009-01-11 23:03
Can you try with this one?

PS: do we have a buildbot with such a configuration?
msg79637 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009-01-11 23:58
Benjamin confirmed to me that the patch is ok, committing.
msg79638 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-01-12 00:13
In r68537.
History
Date User Action Args
2022-04-11 14:56:44adminsetgithub: 49166
2009-01-12 00:13:54benjamin.petersonsetmessages: + msg79638
2009-01-11 23:58:15pitrousetstatus: open -> closed
resolution: fixed
messages: + msg79637
stage: needs patch -> resolved
2009-01-11 23:03:55pitrousetfiles: + issue4916.patch
keywords: + patch
messages: + msg79635
2009-01-11 22:59:04pitrousetassignee: pitrou
messages: + msg79634
2009-01-11 22:55:06benjamin.petersonsetmessages: + msg79633
2009-01-11 22:54:04pitrousetnosy: + pitrou
messages: + msg79632
2009-01-11 21:55:20benjamin.petersonsetversions: - Python 3.0
2009-01-11 21:53:45benjamin.petersoncreate