Skip to content

Improve test coverage of the curses module #151693

@serhiy-storchaka

Description

@serhiy-storchaka

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.textpadTextbox behaviour (currently driven through a MagicMock) and rectangle().
  • Window output/inputaddstr/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 coveragecurses.wrapper(), window.insch(), curses.panel.update_panels() and curses.has_key().

Linked PRs

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-featureA feature request or enhancement
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions