Don't export pending_threadfunc from _testcapi. (GH-8075)
(cherry picked from commit b4588c2fffbda91e4c2f0cf2b0fc3d14def95608)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index 5902de0..d87acc1 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -1963,7 +1963,8 @@
/* The following requests n callbacks to _pending_callback. It can be
* run from any python thread.
*/
-PyObject *pending_threadfunc(PyObject *self, PyObject *arg)
+static PyObject *
+pending_threadfunc(PyObject *self, PyObject *arg)
{
PyObject *callable;
int r;