]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-151693: Add curses tests for panels, textpad, and window behavior (GH-15169...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 19 Jun 2026 12:01:54 +0000 (14:01 +0200)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2026 12:01:54 +0000 (12:01 +0000)
commitd81cc8634190e8f48442c73502e124c730a605ca
tree1c89b96f0381e41f6a67e56864abecb1673762ae
parent13529d43c93fad5bb394be348a805b2f94fbb9cf
[3.15] gh-151693: Add curses tests for panels, textpad, and window behavior (GH-151694) (GH-151719)

Add curses tests for panels, textpad, and window behavior

Extend test_curses with behavior-verifying tests that go beyond the
existing smoke tests:

* curses.panel stacking: new_panel/top/bottom/above/below ordering,
  hide/show/hidden, move, replace and userptr round-trip.
* Real-window curses.textpad.Textbox: gather(), edit(), stripspaces,
  insert mode and the Emacs-like editing commands (previously only
  exercised through a MagicMock).
* Window output: addstr cursor advance and addnstr truncation,
  insstr/insnstr shifting without cursor movement, and pad behavior
  (instr, subpad cell sharing, the required 6-argument refresh()).
* Error handling: out-of-range coordinates raising curses.error and
  bad character/string argument types.
(cherry picked from commit b4cfb992ed3a28b8cd626f70e3550ac8dbec1758)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Lib/test/test_curses.py