]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-154788: Make curses window.getparent() unconditional (GH-154789)
authorVyron Vasileiadis <hi@fedonman.com>
Wed, 29 Jul 2026 06:07:15 +0000 (09:07 +0300)
committerGitHub <noreply@github.com>
Wed, 29 Jul 2026 06:07:15 +0000 (09:07 +0300)
commit6af6165c21ddc6adc6208d69606dbdcdbdb06418
tree9af2fbcec79bc4fec999d0cc42a98fbc6d9d5b81
parent8b048eb35eb7f83dbff86dd11c7fdb37caab9e7a
gh-154788: Make curses window.getparent() unconditional (GH-154789)

getparent() calls no curses function, it returns the window's stored parent,
but it was compiled only when the ncurses extension functions were present.
Close the guard after getscrreg(), which does need it.

The test moves out of test_state_getters, which is gated on is_scrollok(), so
that getparent() is covered on backends without the extensions.
Lib/test/test_curses.py
Modules/_cursesmodule.c