]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-151693: Add curses tests for panels, textpad, and window behavior (GH-151694)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 19 Jun 2026 09:35:36 +0000 (12:35 +0300)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2026 09:35:36 +0000 (09:35 +0000)
commitb4cfb992ed3a28b8cd626f70e3550ac8dbec1758
tree7cb62cdb1497162e2ef2a0f1aec1876e28e5adfe
parentbb127c5a96a285f1f6b11261c1f0dc2b3c7f70ff
gh-151693: Add curses tests for panels, textpad, and window behavior (GH-151694)

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.

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