]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-154525: Skip ncurses find_pair()/alloc_pair() reuse checks before 6.3 (GH-154543)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 23 Jul 2026 15:37:43 +0000 (18:37 +0300)
committerGitHub <noreply@github.com>
Thu, 23 Jul 2026 15:37:43 +0000 (15:37 +0000)
commit22c797005d1eaa2b03bcd9d858c2525a1d1560c4
treefda0047899f2eb1ce5e1c3f743a18b0c22312b1f
parentaad438b0b61206ff67f32aa1ca24792f26f6fff9
gh-154525: Skip ncurses find_pair()/alloc_pair() reuse checks before 6.3 (GH-154543)

find_pair() and reuse in alloc_pair() were fixed in ncurses 6.3 (patch
20200411).  On earlier versions find_pair() returns -1 and alloc_pair()
allocates a fresh pair instead of reusing an equal one, so
test_dynamic_color_pairs failed on ncurses 6.1 and 6.2.

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