gh-141553: Fix incorrect function signatures in _testmultiphase (#141554)

This commit is contained in:
Shamil 2025-11-15 20:46:54 +03:00 committed by GitHub
parent ed81baf81f
commit 85f3009d75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1061,7 +1061,7 @@ PyModInit__test_from_modexport_exception(void)
}
static PyObject *
modexport_create_string(PyObject *spec, PyObject *def)
modexport_create_string(PyObject *spec, PyModuleDef *def)
{
assert(def == NULL);
return PyUnicode_FromString("is this \xf0\x9f\xa6\x8b... a module?");
@ -1138,8 +1138,9 @@ modexport_get_empty_slots(PyObject *mod, PyObject *arg)
}
static void
modexport_smoke_free(PyObject *mod)
modexport_smoke_free(void *op)
{
PyObject *mod = (PyObject *)op;
int *state = PyModule_GetState(mod);
if (!state) {
PyErr_FormatUnraisable("Exception ignored in module %R free", mod);