Skip to content
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

random failure of test_builtin #71512

Closed
xdegaye mannequin opened this issue Jun 15, 2016 · 2 comments
Closed

random failure of test_builtin #71512

xdegaye mannequin opened this issue Jun 15, 2016 · 2 comments
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@xdegaye
Copy link
Mannequin

xdegaye mannequin commented Jun 15, 2016

BPO 27325
Nosy @xdegaye, @berkerpeksag, @vadmium
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-06-15.09:39:00.761>
    created_at = <Date 2016-06-15.09:29:17.779>
    labels = ['type-bug', 'tests']
    title = 'random failure of test_builtin'
    updated_at = <Date 2016-06-15.09:39:00.759>
    user = 'https://github.com/xdegaye'

    bugs.python.org fields:

    activity = <Date 2016-06-15.09:39:00.759>
    actor = 'berker.peksag'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-06-15.09:39:00.761>
    closer = 'berker.peksag'
    components = ['Tests']
    creation = <Date 2016-06-15.09:29:17.779>
    creator = 'xdegaye'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 27325
    keywords = []
    message_count = 2.0
    messages = ['268613', '268614']
    nosy_count = 3.0
    nosy_names = ['xdegaye', 'berker.peksag', 'martin.panter']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '13886'
    type = 'behavior'
    url = 'https://bugs.python.org/issue27325'
    versions = ['Python 3.6']

    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented Jun 15, 2016

    Not sure if this is relevant, I am using:
    readline 6.3
    ncurses 6.0

    The test runs fine when run alone, with the 8991930 random seed:

    $ ./python -bb -E -Wd -m test -r -w -uall --randseed 8991930
    ======================================================================                      [3/1338]
    FAIL: test_input_tty_non_ascii (test.test_builtin.PtyTests)

    Traceback (most recent call last):
      File "/home/xavier/src/python/default/Lib/test/test_builtin.py", line 1583, in test_input_tty_non_
    ascii
        self.check_input_tty("prompté", b"quux\xe9", "utf-8")
      File "/home/xavier/src/python/default/Lib/test/test_builtin.py", line 1574, 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/xavier/src/python/default/Lib/test/test_builtin.py", line 1587, in test_input_tty_non_
    ascii_unicode_errors
        self.check_input_tty("prompté", b"quux\xe9", "ascii")
      File "/home/xavier/src/python/default/Lib/test/test_builtin.py", line 1574, in check_input_tty
        self.assertEqual(input_result, expected)
    AssertionError: 'quux' != 'quux\udce9'
    - quux
    + quux\udce9
    ?     +

    @xdegaye xdegaye mannequin added tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Jun 15, 2016
    @berkerpeksag
    Copy link
    Member

    This is a duplicate of bpo-13886.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant