Skip to content
Merged
Prev Previous commit
Next Next commit
Correct function name
  • Loading branch information
encukou committed Mar 19, 2026
commit 9d1386a3de33ff49d5059f698547128edb932ceb
2 changes: 1 addition & 1 deletion Modules/_testcapi/heaptype.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ static PyObject *
pytype_getmodulebydef(PyObject *self, PyObject *type)
{
PyObject *mod = PyType_GetModuleByDef((PyTypeObject *)type, _testcapimodule);
assert(mod == PyType_GetModuleByDef_DuringGC((PyTypeObject *)type, _testcapimodule));
assert(mod == PyType_GetModuleByToken_DuringGC((PyTypeObject *)type, _testcapimodule));
return Py_XNewRef(mod);
}

Expand Down
Loading