Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7929e19

Browse files
committed
Fix test_set_funcs()
1 parent 3cf2552 commit 7929e19

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_pythoncapi_compat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test_set_funcs(PyObject *self, PyObject *ignored)
2020
{
2121
PyObject *obj = PyList_New(0);
2222
if (obj == NULL) {
23-
return -1;
23+
return NULL;
2424
}
2525

2626
// test Py_SET_REFCNT
@@ -108,7 +108,7 @@ static struct PyMethodDef methods[] = {
108108
{"test_frame", test_frame, METH_NOARGS},
109109
{"test_thread_state", test_thread_state, METH_NOARGS},
110110
{"test_interpreter", test_interpreter, METH_NOARGS},
111-
{NULL, NULL} /* sentinel */
111+
{NULL, NULL}
112112
};
113113

114114

0 commit comments

Comments
 (0)