https://github.com/python/cpython/commit/546687f6f20bf2c0cdf30538690003f1b04a64d7 commit: 546687f6f20bf2c0cdf30538690003f1b04a64d7 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: zware <[email protected]> date: 2026-09-22T02:27:53Z summary:
[3.13] Disable inputrc in test_pyrepl basic REPL output test (GH-157938) Specifically, `test_no_newline` would fail if the user's `~/.inputrc` sets `editing-mode vi`, which adds `(ins)` for "insert mode" to the beginning of the prompt. (cherry picked from commit d5dede7442ebb4a05cff5309697fb5dcba3d5297) Co-authored-by: Zachary Ware <[email protected]> files: M Lib/test/test_pyrepl/test_pyrepl.py diff --git a/Lib/test/test_pyrepl/test_pyrepl.py b/Lib/test/test_pyrepl/test_pyrepl.py index bbb69fe160fb031..2b5043e19df5fe4 100644 --- a/Lib/test/test_pyrepl/test_pyrepl.py +++ b/Lib/test/test_pyrepl/test_pyrepl.py @@ -1418,6 +1418,8 @@ def test_no_newline(self): env = os.environ.copy() env.pop("PYTHON_BASIC_REPL", "") env["PYTHON_BASIC_REPL"] = "1" + # Ensure user's .inputrc doesn't interfere with basic REPL output + env["INPUTRC"] = "/dev/null" commands = "print('Something pretty long', end='')\nexit()\n" expected_output_sequence = "Something pretty long>>> exit()" _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
