diff options
author | Petr Viktorin <encukou@gmail.com> | 2023-02-28 08:31:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-28 08:31:01 (GMT) |
commit | 6b2d7c0ddb4d2afe298ee7c8f6a23c400f1465fd (patch) | |
tree | fa34a8d7217783a1e9069144b94d369cfb573052 /Lib | |
parent | c41af812c948ec3cb07b2ef7a46a238f5cab3dc2 (diff) | |
download | cpython-6b2d7c0ddb4d2afe298ee7c8f6a23c400f1465fd.zip cpython-6b2d7c0ddb4d2afe298ee7c8f6a23c400f1465fd.tar.gz cpython-6b2d7c0ddb4d2afe298ee7c8f6a23c400f1465fd.tar.bz2 |
gh-101101: Unstable C API tier (PEP 689) (GH-101102)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_code.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_code.py b/Lib/test/test_code.py index 9c2ac83..0cd1fb3 100644 --- a/Lib/test/test_code.py +++ b/Lib/test/test_code.py @@ -752,15 +752,15 @@ if check_impl_detail(cpython=True) and ctypes is not None: py = ctypes.pythonapi freefunc = ctypes.CFUNCTYPE(None,ctypes.c_voidp) - RequestCodeExtraIndex = py._PyEval_RequestCodeExtraIndex + RequestCodeExtraIndex = py.PyUnstable_Eval_RequestCodeExtraIndex RequestCodeExtraIndex.argtypes = (freefunc,) RequestCodeExtraIndex.restype = ctypes.c_ssize_t - SetExtra = py._PyCode_SetExtra + SetExtra = py.PyUnstable_Code_SetExtra SetExtra.argtypes = (ctypes.py_object, ctypes.c_ssize_t, ctypes.c_voidp) SetExtra.restype = ctypes.c_int - GetExtra = py._PyCode_GetExtra + GetExtra = py.PyUnstable_Code_GetExtra GetExtra.argtypes = (ctypes.py_object, ctypes.c_ssize_t, ctypes.POINTER(ctypes.c_voidp)) GetExtra.restype = ctypes.c_int |