#define PYTESTCAPI_NEED_INTERNAL_API #include "parts.h" #include "util.h" #include "pycore_fileutils.h" // _Py_IsValidFD() #include <stdio.h> #include <errno.h> static PyObject * run_stringflags(PyObject *mod, PyObject *pos_args) { … } static PyObject * run_fileexflags(PyObject *mod, PyObject *pos_args) { … } static PyMethodDef test_methods[] = …; int _PyTestCapi_Init_Run(PyObject *mod) { … }