Skip to content

Python 2.7.9 test_readline regression on CentOS 6 #67281

Closed

Description

@vlee
mannequin
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']

    Activity

    1. vlee commented on Dec 20, 2014

      vleemannequin
      MannequinAuthor

      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
    2. added
      tests
      on Dec 20, 2014
    3. berkerpeksag commented on Dec 20, 2014

      @berkerpeksag
      Member

      This looks like a duplicate of bpo-19884.

    4. added
      type-bug
      on Dec 20, 2014
    5. vlee commented on Dec 20, 2014

      vleemannequin
      MannequinAuthor

      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.
      
    6. 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

      teststype-bug

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions