]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-13886: Skip PTY non-ASCII tests if readline is loaded (GH-30631) (GH-30635)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 17 Jan 2022 13:47:21 +0000 (05:47 -0800)
committerGitHub <noreply@github.com>
Mon, 17 Jan 2022 13:47:21 +0000 (14:47 +0100)
commit0fbb9afbddb93408e34bdb7625002374cb2ad68c
treeef99a80286c655c3417993ba036fad27e308a40f
parentf869b56fe4be416d356fffc94b8b18fe65039929
bpo-13886: Skip PTY non-ASCII tests if readline is loaded (GH-30631) (GH-30635)

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.
(cherry picked from commit ad6e640f910787e73fd00f59117fbd22cdf88c78)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
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]