Skip to content

test_io is broken on UCS4 #49166

Closed
Closed

Description

@benjaminp
BPO 4916
Nosy @pitrou, @benjaminp
Files
  • issue4916.patch
  • 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 = <Date 2009-01-11.23:58:15.351>
    created_at = <Date 2009-01-11.21:53:45.432>
    labels = ['interpreter-core', 'type-bug', 'release-blocker']
    title = 'test_io is broken on UCS4'
    updated_at = <Date 2009-01-12.00:13:54.809>
    user = 'https://github.com/benjaminp'

    bugs.python.org fields:

    activity = <Date 2009-01-12.00:13:54.809>
    actor = 'benjamin.peterson'
    assignee = 'pitrou'
    closed = True
    closed_date = <Date 2009-01-11.23:58:15.351>
    closer = 'pitrou'
    components = ['Interpreter Core']
    creation = <Date 2009-01-11.21:53:45.432>
    creator = 'benjamin.peterson'
    dependencies = []
    files = ['12691']
    hgrepos = []
    issue_num = 4916
    keywords = ['patch']
    message_count = 7.0
    messages = ['79630', '79632', '79633', '79634', '79635', '79637', '79638']
    nosy_count = 2.0
    nosy_names = ['pitrou', 'benjamin.peterson']
    pr_nums = []
    priority = 'release blocker'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue4916'
    versions = ['Python 3.1']

    Activity

    1. benjaminp commented on Jan 11, 2009

      @benjaminp
      ContributorAuthor

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

    2. pitrou commented on Jan 11, 2009

      @pitrou
      Member

      Ouch. What platform is this on?

    3. benjaminp commented on Jan 11, 2009

      @benjaminp
      ContributorAuthor

      MacOS 10.4 PPC

    4. pitrou commented on Jan 11, 2009

      @pitrou
      Member

      This is because of the new utf16 decoding code. I'll post a patch soon.

    5. self-assigned this
      on Jan 11, 2009
    6. pitrou commented on Jan 11, 2009

      @pitrou
      Member

      Can you try with this one?

      PS: do we have a buildbot with such a configuration?

    7. pitrou commented on Jan 11, 2009

      @pitrou
      Member

      Benjamin confirmed to me that the patch is ok, committing.

    8. benjaminp commented on Jan 12, 2009

      @benjaminp
      ContributorAuthor

      In r68537.

    9. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)release-blockertype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions