]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-151776: Fix test_state_getters on terminals without insert/delete capability ...
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 26 Jun 2026 15:50:30 +0000 (18:50 +0300)
committerGitHub <noreply@github.com>
Fri, 26 Jun 2026 15:50:30 +0000 (15:50 +0000)
commitbf61794fd2c293d79a81f3578fd3fc3f96dd341c
tree3f5ffd9abf464b18b60622d034697dd751a5dfce
parent671357691f84820d4a4799012e937ab9dcbfdaca
gh-151776: Fix test_state_getters on terminals without insert/delete capability (GH-152304)

idcok() and idlok() take effect only when the terminal can insert or
delete characters or lines, so check their getters against the
terminal's capabilities instead of asserting an unconditional round-trip.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Lib/test/test_curses.py