Skip to content

Commit 237f518

Browse files
committed
Add PyABIInfo_VAR to to _testcapimodule & _testinternalcapi
1 parent a44509e commit 237f518

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Modules/_testcapimodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3523,7 +3523,10 @@ _testcapi_exec(PyObject *m)
35233523
return 0;
35243524
}
35253525

3526+
PyABIInfo_VAR(abi_info);
3527+
35263528
static PyModuleDef_Slot _testcapi_slots[] = {
3529+
{Py_mod_abi, abi_info},
35273530
{Py_mod_exec, _testcapi_exec},
35283531
{Py_mod_gil, Py_MOD_GIL_NOT_USED},
35293532
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},

Modules/_testinternalcapi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2696,7 +2696,10 @@ module_exec(PyObject *module)
26962696
return 0;
26972697
}
26982698

2699+
PyABIInfo_VAR(abi_info);
2700+
26992701
static struct PyModuleDef_Slot module_slots[] = {
2702+
{Py_mod_abi, abi_info},
27002703
{Py_mod_exec, module_exec},
27012704
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
27022705
{Py_mod_gil, Py_MOD_GIL_NOT_USED},

0 commit comments

Comments
 (0)