aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Modules/_testinternalcapi.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2025-05-12 16:10:56 -0600
committerGitHub <noreply@github.com>2025-05-12 22:10:56 +0000
commit8cf4947b0f2d37f7ffeca136ac4f99cb4cb70e5c (patch)
tree556a2a34633f18e7271467d73854ad344831f33d /Modules/_testinternalcapi.c
parent121ed71f4e395948d313249b2ad33e1e21581f8a (diff)
downloadcpython-8cf4947b0f2d37f7ffeca136ac4f99cb4cb70e5c.tar.gz
cpython-8cf4947b0f2d37f7ffeca136ac4f99cb4cb70e5c.zip
gh-132775: Add _PyFunction_GetXIData() (gh-133481)
Diffstat (limited to 'Modules/_testinternalcapi.c')
-rw-r--r--Modules/_testinternalcapi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/_testinternalcapi.c b/Modules/_testinternalcapi.c
index 3030f45d72c..92f744c5a5f 100644
--- a/Modules/_testinternalcapi.c
+++ b/Modules/_testinternalcapi.c
@@ -1989,6 +1989,11 @@ get_crossinterp_data(PyObject *self, PyObject *args, PyObject *kwargs)
goto error;
}
}
+ else if (strcmp(mode, "func") == 0) {
+ if (_PyFunction_GetXIData(tstate, obj, xidata) != 0) {
+ goto error;
+ }
+ }
else if (strcmp(mode, "script") == 0) {
if (_PyCode_GetScriptXIData(tstate, obj, xidata) != 0) {
goto error;