diff options
author | Mark Shannon <mark@hotpy.org> | 2024-02-27 10:51:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-27 10:51:26 (GMT) |
commit | 10fbcd6c5dc25bfe14e02fd93ef93498a393860c (patch) | |
tree | 408fd5d2857188a57f2fbefb5661dd0067b3d7e0 /Modules/_testinternalcapi.c | |
parent | af5f9d682c20c951b90e3c020eeccac386c9bbb0 (diff) | |
download | cpython-10fbcd6c5dc25bfe14e02fd93ef93498a393860c.zip cpython-10fbcd6c5dc25bfe14e02fd93ef93498a393860c.tar.gz cpython-10fbcd6c5dc25bfe14e02fd93ef93498a393860c.tar.bz2 |
GH-115816: Make tier2 optimizer symbols testable, and add a few tests. (GH-115953)
Diffstat (limited to 'Modules/_testinternalcapi.c')
-rw-r--r-- | Modules/_testinternalcapi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_testinternalcapi.c b/Modules/_testinternalcapi.c index 5b714ca..9c6970d 100644 --- a/Modules/_testinternalcapi.c +++ b/Modules/_testinternalcapi.c @@ -24,6 +24,7 @@ #include "pycore_interp.h" // _PyInterpreterState_GetConfigCopy() #include "pycore_long.h" // _PyLong_Sign() #include "pycore_object.h" // _PyObject_IsFreed() +#include "pycore_optimizer.h" // _Py_UOpsSymType, etc. #include "pycore_pathconfig.h" // _PyPathConfig_ClearGlobal() #include "pycore_pyerrors.h" // _PyErr_ChainExceptions1() #include "pycore_pystate.h" // _PyThreadState_GET() @@ -1677,7 +1678,6 @@ get_py_thread_id(PyObject *self, PyObject *Py_UNUSED(ignored)) } #endif - static PyMethodDef module_functions[] = { {"get_configs", get_configs, METH_NOARGS}, {"get_recursion_depth", get_recursion_depth, METH_NOARGS}, @@ -1747,6 +1747,7 @@ static PyMethodDef module_functions[] = { #ifdef Py_GIL_DISABLED {"py_thread_id", get_py_thread_id, METH_NOARGS}, #endif + {"uop_symbols_test", _Py_uop_symbols_test, METH_NOARGS}, {NULL, NULL} /* sentinel */ }; |