Skip to content

Commit 4b55134

Browse files
committed
Fix test.
1 parent 8a64537 commit 4b55134

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_testcapimodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3490,7 +3490,7 @@ tracemalloc_track_race(PyObject *self, PyObject *args)
34903490
static PyObject *
34913491
is_immortal(PyObject *self, PyObject *op)
34923492
{
3493-
return PyUnstable_IsImmortal(op);
3493+
return PyBool_FromLong(PyUnstable_IsImmortal(op));
34943494
}
34953495

34963496
static PyMethodDef TestMethods[] = {
@@ -3636,7 +3636,7 @@ static PyMethodDef TestMethods[] = {
36363636
{"test_atexit", test_atexit, METH_NOARGS},
36373637
{"code_offset_to_line", _PyCFunction_CAST(code_offset_to_line), METH_FASTCALL},
36383638
{"tracemalloc_track_race", tracemalloc_track_race, METH_NOARGS},
3639-
{"is_immortal", is_immortal, METH_O}
3639+
{"is_immortal", is_immortal, METH_O},
36403640
{NULL, NULL} /* sentinel */
36413641
};
36423642

0 commit comments

Comments
 (0)