Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-125843: fixtest_curses.test_attributes on x86-64 macOS#134252

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
picnixz merged 8 commits intopython:mainfrompicnixz:patch/curses-checks-125843
May 20, 2025
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletionsModules/_cursesmodule.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -392,17 +392,16 @@ _PyCursesStatefulCheckFunction(PyObject *module,
*/

/*
* Return None if 'code' isOK. Otherwise, set an exception
* using curses_set_error() and the remaining arguments, and
* return NULL.
* Return None if 'code' isdifferent from ERR (implementation-defined).
*Otherwise, set an exceptionusing curses_set_error() and the remaining
*arguments, andreturn NULL.
*/
static PyObject *
curses_check_err(PyObject *module, int code,
const char *curses_funcname,
const char *python_funcname)
{
if (code != ERR) {
assert(code == OK);
Py_RETURN_NONE;
}
curses_set_error(module, curses_funcname, python_funcname);
Expand All@@ -416,7 +415,6 @@ curses_window_check_err(PyCursesWindowObject *win, int code,
const char *python_funcname)
{
if (code != ERR) {
assert(code == OK);
Py_RETURN_NONE;
}
curses_window_set_error(win, curses_funcname, python_funcname);
Expand DownExpand Up@@ -1580,7 +1578,7 @@ _curses_window_derwin_impl(PyCursesWindowObject *self, int group_left_1,
win = derwin(self->win,nlines,ncols,begin_y,begin_x);

if (win == NULL) {
curses_window_set_error(self, "derwin", NULL);
curses_window_set_null_error(self, "derwin", NULL);
return NULL;
}

Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp