]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-13886: Skip PTY non-ASCII tests if readline is loaded (GH-30631)
authorVictor Stinner <vstinner@python.org>
Mon, 17 Jan 2022 13:00:50 +0000 (14:00 +0100)
committerGitHub <noreply@github.com>
Mon, 17 Jan 2022 13:00:50 +0000 (14:00 +0100)
commitad6e640f910787e73fd00f59117fbd22cdf88c78
treefe568eaff590e163c67df5ff1d970949fb5e3e51
parent42a64c03ec5c443f2a5c2ee4284622f5d1f5326c
bpo-13886: Skip PTY non-ASCII tests if readline is loaded (GH-30631)

Skip test_builtin PTY tests on non-ASCII characters if the readline
module is loaded. The readline module changes input() behavior, but
test_builtin is not intented to test the readline module.

When the readline module is loaded, PyOS_Readline() uses the readline
implementation. In some cases, the Python readline callback
rlhandler() is called by readline with a string without non-ASCII
characters.
Lib/test/test_builtin.py
Misc/NEWS.d/next/Tests/2022-01-17-13-10-04.bpo-13886.5mZH4b.rst [new file with mode: 0644]