This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_readline: test_nonascii() failed on aarch64 RHEL8 Refleaks 3.x
Type: Stage: resolved
Components: Tests Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: lukasz.langa, miss-islington, vstinner
Priority: normal Keywords: patch

Created on 2021-09-14 11:14 by vstinner, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 28329 merged vstinner, 2021-09-14 11:16
PR 28333 merged miss-islington, 2021-09-14 15:38
PR 28334 merged miss-islington, 2021-09-14 15:38
PR 28984 merged miss-islington, 2021-10-15 17:49
Messages (5)
msg401775 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2021-09-14 11:14
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 6fb62b42f4db56ed5efe0ca4c1059049276c1083.

"\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
msg401783 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2021-09-14 15:38
New changeset 797c8eb9ef511f0c25f10a453b35c4d2fe383c30 by Victor Stinner in branch 'main':
bpo-45195: Fix test_readline.test_nonascii() (GH-28329)
https://github.com/python/cpython/commit/797c8eb9ef511f0c25f10a453b35c4d2fe383c30
msg401825 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2021-09-15 12:38
New changeset ececa53b7fc9c21d0c8153153e3c19da1d0a1e80 by Miss Islington (bot) in branch '3.10':
bpo-45195: Fix test_readline.test_nonascii() (GH-28329) (GH-28333)
https://github.com/python/cpython/commit/ececa53b7fc9c21d0c8153153e3c19da1d0a1e80
msg401826 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2021-09-15 12:39
New changeset 4ce55cceb2901c564962f724448a9ced00c8a738 by Miss Islington (bot) in branch '3.9':
bpo-45195: Fix test_readline.test_nonascii() (GH-28329) (GH-28334)
https://github.com/python/cpython/commit/4ce55cceb2901c564962f724448a9ced00c8a738
msg404337 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-10-19 19:14
New changeset 1d8cb01e23ab5fc626d4deda216f9a9a19a644a2 by Miss Islington (bot) in branch '3.8':
bpo-45195: Fix test_readline.test_nonascii() (GH-28329) (GH-28984)
https://github.com/python/cpython/commit/1d8cb01e23ab5fc626d4deda216f9a9a19a644a2
History
Date User Action Args
2022-04-11 14:59:50adminsetgithub: 89358
2021-10-19 19:14:41lukasz.langasetnosy: + lukasz.langa
messages: + msg404337
2021-10-15 17:49:06miss-islingtonsetpull_requests: + pull_request27271
2021-09-15 12:39:22vstinnersetstatus: open -> closed
stage: patch review -> resolved
resolution: fixed
versions: + Python 3.9, Python 3.10
2021-09-15 12:39:00vstinnersetmessages: + msg401826
2021-09-15 12:38:52vstinnersetmessages: + msg401825
2021-09-14 15:38:19miss-islingtonsetpull_requests: + pull_request26744
2021-09-14 15:38:16vstinnersetmessages: + msg401783
2021-09-14 15:38:15miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request26743
2021-09-14 11:16:41vstinnersetkeywords: + patch
stage: patch review
pull_requests: + pull_request26740
2021-09-14 11:14:00vstinnercreate