Skip to content

Failure when running test_builtin after test_genexps #61934

Closed

Description

@ncoghlan
BPO 17734
Nosy @brettcannon, @ncoghlan, @vstinner, @ezio-melotti, @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 2013-09-16.16:10:30.684>
    created_at = <Date 2013-04-15.12:40:13.890>
    labels = ['type-bug']
    title = 'Failure when running test_builtin after test_genexps'
    updated_at = <Date 2013-09-16.16:10:30.682>
    user = 'https://github.com/ncoghlan'

    bugs.python.org fields:

    activity = <Date 2013-09-16.16:10:30.682>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2013-09-16.16:10:30.684>
    closer = 'serhiy.storchaka'
    components = []
    creation = <Date 2013-04-15.12:40:13.890>
    creator = 'ncoghlan'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 17734
    keywords = []
    message_count = 4.0
    messages = ['186979', '187001', '191271', '197916']
    nosy_count = 6.0
    nosy_names = ['brett.cannon', 'ncoghlan', 'vstinner', 'ezio.melotti', 'Arfrever', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'test needed'
    status = 'closed'
    superseder = '13886'
    type = 'behavior'
    url = 'https://bugs.python.org/issue17734'
    versions = ['Python 3.3', 'Python 3.4']

    Activity

    1. ncoghlan commented on Apr 15, 2013

      @ncoghlan
      ContributorAuthor

      I'm getting a failure in test_builtin when running the following:

      ./python -m test -w test_genexps test_builtin
      

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

      Traceback (most recent call last):
        File "/home/ncoghlan/devel/py3k/Lib/test/test_builtin.py", line 1176, in test_input_tty_non_ascii
          self.check_input_tty("prompté", b"quux\xe9", "utf-8")
        File "/home/ncoghlan/devel/py3k/Lib/test/test_builtin.py", line 1167, 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.BuiltinTest)
      ----------------------------------------------------------------------

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

      The problem persists after a make clean and rebuild.

    2. ezio-melotti commented on Apr 15, 2013

      @ezio-melotti
      Member

      Isn't this the same as bpo-13886?

    3. brettcannon commented on Jun 16, 2013

      @brettcannon
      Member

      Issue bpo-18230 is another test_builtin failure related to tty tests.

    4. serhiy-storchaka commented on Sep 16, 2013

      @serhiy-storchaka
      Member

      Yes. test_genexps uses doctests, doctest uses pdb, pdb imports readline.

    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