]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-90092: Fix test_curses when stdin is write-only (e.g. under nohup) (GH-153420)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 9 Jul 2026 15:43:26 +0000 (18:43 +0300)
committerGitHub <noreply@github.com>
Thu, 9 Jul 2026 15:43:26 +0000 (15:43 +0000)
commiteacb85a2b2ee9212997ab451dc95ec3e7992afc8
tree13def5f7f63545908e37d945c9f67a78d42ad61d
parentdd8739a35bf171068117019ceb836f2f2264a3e9
gh-90092: Fix test_curses when stdin is write-only (e.g. under nohup) (GH-153420)

newterm() needs a readable input fd, but nohup can leave stdin write-only.
Fall back to the output fd, as already done when stdin has no fileno.

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