Skip to content

test_builtin failures when refleak hunting #73058

Closed

Description

@ncoghlan
BPO 28872
Nosy @ncoghlan, @ned-deily, @serhiy-storchaka
Superseder
  • bpo-13886: test_builtin.PtyTests fail on non-ASCII characters if the readline module is loaded
  • 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 = None
    closed_at = <Date 2016-12-05.19:41:14.486>
    created_at = <Date 2016-12-05.07:08:43.529>
    labels = ['type-bug']
    title = 'test_builtin failures when refleak hunting'
    updated_at = <Date 2016-12-05.19:41:14.485>
    user = 'https://github.com/ncoghlan'

    bugs.python.org fields:

    activity = <Date 2016-12-05.19:41:14.485>
    actor = 'ned.deily'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-12-05.19:41:14.486>
    closer = 'ned.deily'
    components = []
    creation = <Date 2016-12-05.07:08:43.529>
    creator = 'ncoghlan'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 28872
    keywords = []
    message_count = 3.0
    messages = ['282389', '282392', '282395']
    nosy_count = 3.0
    nosy_names = ['ncoghlan', 'ned.deily', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '13886'
    type = 'behavior'
    url = 'https://bugs.python.org/issue28872'
    versions = ['Python 3.6']

    Activity

    1. ncoghlan commented on Dec 5, 2016

      @ncoghlan
      ContributorAuthor

      test_builtin currently fails for me when hunting refleaks (Fedora 25):

      $ ./python -m test -R 3:3 -v test_builtin

      [snip]

      ======================================================================
      FAIL: test_input_tty_non_ascii (test.test_builtin.PtyTests)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/home/ncoghlan/devel/py36/Lib/test/test_builtin.py", line 1592, in test_input_tty_non_ascii
          self.check_input_tty("prompté", b"quux\xe9", "utf-8")
        File "/home/ncoghlan/devel/py36/Lib/test/test_builtin.py", line 1583, in check_input_tty
          self.assertEqual(input_result, expected)
      AssertionError: 'quux' != 'quux\udce9'
      - quux
      + quux\udce9
      ?     +

      ======================================================================
      FAIL: test_input_tty_non_ascii_unicode_errors (test.test_builtin.PtyTests)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/home/ncoghlan/devel/py36/Lib/test/test_builtin.py", line 1596, in test_input_tty_non_ascii_unicode_errors
          self.check_input_tty("prompté", b"quux\xe9", "ascii")
        File "/home/ncoghlan/devel/py36/Lib/test/test_builtin.py", line 1583, in check_input_tty
          self.assertEqual(input_result, expected)
      AssertionError: 'quux' != 'quux\udce9'
      - quux
      + quux\udce9
      ?     +

      Ran 78 tests in 0.066s

      FAILED (failures=2)

    2. ncoghlan commented on Dec 5, 2016

      @ncoghlan
      ContributorAuthor

      Ned, I'm not sure if this should be a release blocker or not.

      Superficially, it looks like it's just a test bug arising from running the test multiple times in the same process, but I unfortunately don't have time to investigate further today.

    3. serhiy-storchaka commented on Dec 5, 2016

      @serhiy-storchaka
      Member

      This is a duplicate of bpo-13886.

    4. removed their assignment
      on Dec 5, 2016
    5. 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

    No one assigned

      Labels

      type-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions