Skip to content

Commit 9d1386a

Browse files
committed
Correct function name
1 parent 467ec09 commit 9d1386a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_testcapi/heaptype.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ static PyObject *
537537
pytype_getmodulebydef(PyObject *self, PyObject *type)
538538
{
539539
PyObject *mod = PyType_GetModuleByDef((PyTypeObject *)type, _testcapimodule);
540-
assert(mod == PyType_GetModuleByDef_DuringGC((PyTypeObject *)type, _testcapimodule));
540+
assert(mod == PyType_GetModuleByToken_DuringGC((PyTypeObject *)type, _testcapimodule));
541541
return Py_XNewRef(mod);
542542
}
543543

0 commit comments

Comments
 (0)