-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-91221: remove unreliable checks on curses.pair_content(0)
#132986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-91221: remove unreliable checks on curses.pair_content(0)
#132986
Conversation
The current terminal fg/bg colors given by `pair_content(0)`, which is backed by `extended_pair_content(3)`, depends on the terminal emulator and its supported colors. Thus, its output cannot not be reliably checked.
curses.pair_content(0)
curses.pair_content(0)
I'll use #132990. At least we won't bother people. If there are more users that can be annoyed, let's just remove the check later. |
# The current terminal fg/bg colors given by pair_content(0), | ||
# which is backed by extended_pair_content(3), depends on the | ||
# terminal emulator and its supported colors. | ||
curses.pair_content(0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we remove the check, the call to curses.pair_content(0)
can be removed as well. It is no longer useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I eventually decided to use the other PR. It's not really an issue and it could catch issues when we call pair_content(0)
from the C code.
@@ -0,0 +1,3 @@ | |||
Do not check the output of :func:`curses.pair_content(0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We usually do not add NEWS entries for test-only changes. They are not useful for Python users.
The current terminal fg/bg colors given by
pair_content(0)
, which is backed byextended_pair_content(3)
, depends on the terminal emulator and its supported colors. Thus, its output cannot not be reliably checked.