Feature or enhancement
Lib/test/test_curses.py references almost every curses window method and module function, but many references only check that a call does not raise, and some of the API is not exercised at all. Areas worth deepening:
curses.panel — the stacking semantics (only the userptr lifecycle is covered).
curses.textpad — Textbox behaviour (currently driven through a MagicMock) and rectangle().
- Window output/input —
addstr/insstr/insch and the pad operations, verified by reading the cells back.
- Error handling — out-of-range coordinates and bad argument types.
- Entry points with no coverage —
curses.wrapper(), window.insch(), curses.panel.update_panels() and curses.has_key().
Linked PRs
Linked PRs
Feature or enhancement
Lib/test/test_curses.pyreferences almost everycurseswindow method and module function, but many references only check that a call does not raise, and some of the API is not exercised at all. Areas worth deepening:curses.panel— the stacking semantics (only theuserptrlifecycle is covered).curses.textpad—Textboxbehaviour (currently driven through aMagicMock) andrectangle().addstr/insstr/inschand the pad operations, verified by reading the cells back.curses.wrapper(),window.insch(),curses.panel.update_panels()andcurses.has_key().Linked PRs
Linked PRs