https://github.com/python/cpython/commit/0e4940f0c113d8f4522ca3c120e470e9da922a8d commit: 0e4940f0c113d8f4522ca3c120e470e9da922a8d branch: main author: Serhiy Storchaka <[email protected]> committer: serhiy-storchaka <[email protected]> date: 2026-07-22T04:25:24Z summary:
gh-154395: Skip test_environment_is_not_modified without rl_change_environment (GH-154396) readline sets LINES and COLUMNS if rl_change_environment is not available, which is the case with readline older than 6.3. Co-authored-by: Claude Opus 4.8 <[email protected]> files: M Lib/test/test_readline.py diff --git a/Lib/test/test_readline.py b/Lib/test/test_readline.py index b0b9d64cfe6a5f..97ca93ae09db34 100644 --- a/Lib/test/test_readline.py +++ b/Lib/test/test_readline.py @@ -5,6 +5,7 @@ import locale import os import sys +import sysconfig import tempfile import textwrap import threading @@ -413,6 +414,8 @@ def test_write_read_limited_history(self): # So, we've only tested that the read did not fail. # See TestHistoryManipulation for the full test. + @unittest.skipUnless(sysconfig.get_config_var("HAVE_RL_CHANGE_ENVIRONMENT"), + "readline can modify the environment") def test_environment_is_not_modified(self): # os.environ contains environment at the time "os" module was loaded, so # before the "readline" module is loaded. _______________________________________________ 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]
