Skip to content
Merged
Changes from all 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
6 changes: 3 additions & 3 deletions Modules/_testcapimodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1583,9 +1583,9 @@ getitem_with_error(PyObject *self, PyObject *args)
static PyObject *
raise_SIGINT_then_send_None(PyObject *self, PyObject *args)
{
PyGenObject *gen;
PyObject *gen;

if (!PyArg_ParseTuple(args, "O!", &PyGen_Type, &gen))
if (!PyArg_ParseTuple(args, "O", &gen))
return NULL;

/* This is used in a test to check what happens if a signal arrives just
Expand All @@ -1599,7 +1599,7 @@ raise_SIGINT_then_send_None(PyObject *self, PyObject *args)
because we check for signals before every bytecode operation.
*/
raise(SIGINT);
return PyObject_CallMethod((PyObject *)gen, "send", "O", Py_None);
return PyObject_CallMethod(gen, "send", "O", Py_None);
}


Expand Down
Loading