]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-125843: fix `test_curses.test_attributes` on x86-64 macOS (#134252)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Tue, 20 May 2025 09:15:39 +0000 (11:15 +0200)
committerGitHub <noreply@github.com>
Tue, 20 May 2025 09:15:39 +0000 (09:15 +0000)
commite007e62ba7403575611145aa2e39900b5f4bc6bd
tree34291ba3c82cf2a9a88a040892fae25025766f8a
parent28625d4f956f8d30671aba1daaac9735932983db
gh-125843: fix `test_curses.test_attributes` on x86-64 macOS (#134252)

While some `libcurses` functions are meant to return OK on success,
this is not always the case for all implementations. As such, we relax
the checks on the return values and allow any non-ERR value to be
considered equivalent to OK.
Modules/_cursesmodule.c