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

test_readline: test_nonascii() failed on aarch64 RHEL8 Refleaks 3.x #89358

Closed
vstinner opened this issue Sep 14, 2021 · 5 comments
Closed

test_readline: test_nonascii() failed on aarch64 RHEL8 Refleaks 3.x #89358

vstinner opened this issue Sep 14, 2021 · 5 comments
Labels
3.9 only security fixes 3.10 only security fixes 3.11 only security fixes tests Tests in the Lib/test dir

Comments

@vstinner
Copy link
Member

BPO 45195
Nosy @vstinner, @ambv, @miss-islington
PRs
  • bpo-45195: Fix test_readline.test_nonascii() #28329
  • [3.10] bpo-45195: Fix test_readline.test_nonascii() (GH-28329) #28333
  • [3.9] bpo-45195: Fix test_readline.test_nonascii() (GH-28329) #28334
  • [3.8] bpo-45195: Fix test_readline.test_nonascii() (GH-28329) #28984
  • 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 2021-09-15.12:39:22.612>
    created_at = <Date 2021-09-14.11:14:00.996>
    labels = ['tests', '3.9', '3.10', '3.11']
    title = 'test_readline: test_nonascii() failed on aarch64 RHEL8 Refleaks 3.x'
    updated_at = <Date 2021-10-19.19:14:41.315>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2021-10-19.19:14:41.315>
    actor = 'lukasz.langa'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-09-15.12:39:22.612>
    closer = 'vstinner'
    components = ['Tests']
    creation = <Date 2021-09-14.11:14:00.996>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 45195
    keywords = ['patch']
    message_count = 5.0
    messages = ['401775', '401783', '401825', '401826', '404337']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'lukasz.langa', 'miss-islington']
    pr_nums = ['28329', '28333', '28334', '28984']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue45195'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    @vstinner
    Copy link
    Member Author

    aarch64 RHEL8 Refleaks 3.x:
    https://buildbot.python.org/all/#/builders/551/builds/131

    This issue looks like bpo-44949 which has been fixed by commit 6fb62b4.

    "\r\n" is missing at the end of the expected output.

    === logs ===

    readline version: 0x700
    readline runtime version: 0x700
    readline library version: '7.0'
    use libedit emulation? False

    FAIL: test_nonascii (test.test_readline.TestReadline)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64.refleak/build/Lib/test/test_readline.py", line 258, in test_nonascii
        self.assertIn(b"history " + expected + b"\r\n", output)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AssertionError: b"history '[\\xefnserted]|t\\xebxt[after]'\r\n" not found in bytearray(b"^A^B^B^B^B^B^B^B\t\tx\t\r\n[\xc3\xafnserted]|t\xc3\xab[after]\x08\x08\x08\x08\x08\x08\x08text \'t\\xeb\'\r\nline \'[\\xefnserted]|t\\xeb[after]\'\r\nindexes 11 13\r\n\x07text \'t\\xeb\'\r\nline \'[\\xefnserted]|t\\xeb[after]\'\r\nindexes 11 13\r\nsubstitution \'t\\xeb\'\r\nmatches [\'t\\xebnt\', \'t\\xebxt\']\r\nx[after]\x08\x08\x08\x08\x08\x08\x08t[after]\x08\x08\x08\x08\x08\x08\x08\r\nresult \'[\\xefnserted]|t\\xebxt[after]\'\r\nhistory \'[\\xefnserted]|t\\xebxt[after]\'")

    === test.pythoninfo ===

    readline._READLINE_LIBRARY_VERSION: 7.0
    readline._READLINE_RUNTIME_VERSION: 0x700
    readline._READLINE_VERSION: 0x700

    platform.architecture: 64bit ELF
    platform.libc_ver: glibc 2.28
    platform.platform: Linux-4.18.0-305.12.1.el8_4.aarch64-aarch64-with-glibc2.28

    os.environ[LANG]: en_US.UTF-8
    locale.encoding: UTF-8
    sys.filesystem_encoding: utf-8/surrogateescape
    sys.stderr.encoding: utf-8/backslashreplace
    sys.stdin.encoding: utf-8/strict
    sys.stdout.encoding: utf-8/strict

    @vstinner vstinner added 3.11 only security fixes tests Tests in the Lib/test dir labels Sep 14, 2021
    @vstinner
    Copy link
    Member Author

    New changeset 797c8eb by Victor Stinner in branch 'main':
    bpo-45195: Fix test_readline.test_nonascii() (GH-28329)
    797c8eb

    @vstinner
    Copy link
    Member Author

    New changeset ececa53 by Miss Islington (bot) in branch '3.10':
    bpo-45195: Fix test_readline.test_nonascii() (GH-28329) (GH-28333)
    ececa53

    @vstinner
    Copy link
    Member Author

    New changeset 4ce55cc by Miss Islington (bot) in branch '3.9':
    bpo-45195: Fix test_readline.test_nonascii() (GH-28329) (GH-28334)
    4ce55cc

    @vstinner vstinner added 3.9 only security fixes 3.10 only security fixes labels Sep 15, 2021
    @vstinner vstinner added 3.9 only security fixes 3.10 only security fixes labels Sep 15, 2021
    @ambv
    Copy link
    Contributor

    ambv commented Oct 19, 2021

    New changeset 1d8cb01 by Miss Islington (bot) in branch '3.8':
    bpo-45195: Fix test_readline.test_nonascii() (GH-28329) (GH-28984)
    1d8cb01

    @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.9 only security fixes 3.10 only security fixes 3.11 only security fixes tests Tests in the Lib/test dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants