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

Python 2.7.9 test_readline regression on CentOS 6 #67281

Closed
vlee mannequin opened this issue Dec 20, 2014 · 3 comments
Closed

Python 2.7.9 test_readline regression on CentOS 6 #67281

vlee mannequin opened this issue Dec 20, 2014 · 3 comments
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@vlee
Copy link
Mannequin

vlee mannequin commented Dec 20, 2014

BPO 23092
Nosy @berkerpeksag
Superseder
  • bpo-19884: Importing readline produces erroneous output
  • 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 2014-12-20.07:25:36.422>
    created_at = <Date 2014-12-20.02:39:45.943>
    labels = ['type-bug', 'tests']
    title = 'Python 2.7.9 test_readline regression on CentOS 6'
    updated_at = <Date 2014-12-20.07:38:35.377>
    user = 'https://bugs.python.org/vlee'

    bugs.python.org fields:

    activity = <Date 2014-12-20.07:38:35.377>
    actor = 'vlee'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-12-20.07:25:36.422>
    closer = 'berker.peksag'
    components = ['Tests']
    creation = <Date 2014-12-20.02:39:45.943>
    creator = 'vlee'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 23092
    keywords = []
    message_count = 3.0
    messages = ['232957', '232965', '232966']
    nosy_count = 2.0
    nosy_names = ['berker.peksag', 'vlee']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '19884'
    type = 'behavior'
    url = 'https://bugs.python.org/issue23092'
    versions = ['Python 2.7']

    @vlee
    Copy link
    Mannequin Author

    vlee mannequin commented Dec 20, 2014

    test_readline regressed from Python 2.7.8 to Python 2.7.9 on CentOS 6

    Python 2.7.8
    $ ./python -m test.regrtest test_readline
    test_readline
    1 test OK.

    Python 2.7.9
    $ ./python -m test.regrtest test_readline
    [1/1] test_readline
    test test_readline failed -- Traceback (most recent call last):
      File "Python-2.7.9/Lib/test/test_readline.py", line 56, in test_init
        self.assertEqual(stdout, b'')
    AssertionError: '\x1b[?1034h' != ''

    1 test failed:
    test_readline

    $ cat /etc/redhat-release
    CentOS release 6.6 (Final)
    
    $ rpm -qa | grep readline
    readline-6.0-4.el6.x86_64
    compat-readline5-5.2-17.1.el6.x86_64
    readline-devel-6.0-4.el6.x86_64

    @vlee vlee mannequin added the tests Tests in the Lib/test dir label Dec 20, 2014
    @berkerpeksag
    Copy link
    Member

    This looks like a duplicate of bpo-19884.

    @berkerpeksag berkerpeksag added the type-bug An unexpected behavior, bug, or error label Dec 20, 2014
    @vlee
    Copy link
    Mannequin Author

    vlee mannequin commented Dec 20, 2014

    The regression is introduced with this commit.

    commit fa06e2bb13a3e67a0641025483efb19ef569dbd9
    Author: Victor Stinner <victor.stinner@gmail.com>
    Date: Thu Jul 24 12:22:24 2014 +0200

    Issue bpo-19884: readline: Disable the meta modifier key if stdout is not a
    terminal to not write the ANSI sequence "\033[1034h" into stdout. This sequence
    is used on some terminal (ex: TERM=xterm-256color") to enable support of 8 bit
    characters.
    

    @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