gh-151693: Make the curses tests portable to other curses implementations#151729
Conversation
Guard the chgat() check (chgat() needs wchgat()) and stop assuming a subpad shares the parent pad's cells (implementation-defined in X/Open). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
|
GH-151730 is a backport of this pull request to the 3.13 branch. |
|
GH-151731 is a backport of this pull request to the 3.14 branch. |
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15. |
|
GH-151733 is a backport of this pull request to the 3.15 branch. |
Follow-up to GH-151694: make the new
test_cursestests pass on curses implementations other than ncurses.test_coordinate_errorsonly callswindow.chgat()when it is available — it requires a curses providingwchgat().test_padno longer assumes a subpad shares the parent pad's character cells; X/Open Curses leaves that implementation-defined, so the test now writes to and reads from the subpad itself.🤖 Generated with Claude Code