mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-141553: Fix incorrect function signatures in _testmultiphase (#141554)
This commit is contained in:
parent
ed81baf81f
commit
85f3009d75
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue