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

[EASY] Running test_builtin twice fails on input tty tests #75884

Closed
vstinner opened this issue Oct 5, 2017 · 3 comments
Closed

[EASY] Running test_builtin twice fails on input tty tests #75884

vstinner opened this issue Oct 5, 2017 · 3 comments
Labels
3.7 (EOL) end of life easy tests Tests in the Lib/test dir

Comments

@vstinner
Copy link
Member

vstinner commented Oct 5, 2017

BPO 31703
Nosy @vstinner, @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 2017-10-05.13:50:59.570>
    created_at = <Date 2017-10-05.13:41:53.800>
    labels = ['easy', '3.7', 'tests']
    title = '[EASY] Running test_builtin twice fails on input tty tests'
    updated_at = <Date 2017-10-05.13:51:22.249>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2017-10-05.13:51:22.249>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-10-05.13:50:59.570>
    closer = 'serhiy.storchaka'
    components = ['Tests']
    creation = <Date 2017-10-05.13:41:53.800>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 31703
    keywords = ['easy']
    message_count = 3.0
    messages = ['303765', '303766', '303767']
    nosy_count = 2.0
    nosy_names = ['vstinner', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '13886'
    type = None
    url = 'https://bugs.python.org/issue31703'
    versions = ['Python 3.7']

    @vstinner
    Copy link
    Member Author

    vstinner commented Oct 5, 2017

    haypo@selma$ ./python -m test test_builtin test_builtin -v

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

    Traceback (most recent call last):
      File "/home/haypo/prog/python/master/Lib/test/test_builtin.py", line 1717, in test_input_tty_non_ascii
        self.check_input_tty("prompté", b"quux\xe9", "utf-8")
      File "/home/haypo/prog/python/master/Lib/test/test_builtin.py", line 1708, 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/haypo/prog/python/master/Lib/test/test_builtin.py", line 1721, in test_input_tty_non_ascii_unicode_errors
        self.check_input_tty("prompté", b"quux\xe9", "ascii")
      File "/home/haypo/prog/python/master/Lib/test/test_builtin.py", line 1708, in check_input_tty
        self.assertEqual(input_result, expected)
    AssertionError: 'quux' != 'quux\udce9'
    - quux
    + quux\udce9
    ?     +

    @vstinner vstinner added 3.7 (EOL) end of life tests Tests in the Lib/test dir easy labels Oct 5, 2017
    @serhiy-storchaka
    Copy link
    Member

    This is a duplicate of bpo-13886 (and several other issues).

    Why do you think that this issue is easy?

    @vstinner
    Copy link
    Member Author

    vstinner commented Oct 5, 2017

    Why do you think that this issue is easy?

    I'm not sure that it's easy :-)

    @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
    3.7 (EOL) end of life easy tests Tests in the Lib/test dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants