Skip to content

Commit

Permalink
Rename also _testcapi functions
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Jan 26, 2025
1 parent 22d4856 commit 95c739f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Modules/_testcapi/import.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// Test PyImport_ImportModuleAttr()
static PyObject *
pyimport_getmoduleattr(PyObject *self, PyObject *args)
pyimport_importmoduleattr(PyObject *self, PyObject *args)
{
PyObject *mod_name, *attr_name;
if (!PyArg_ParseTuple(args, "OO", &mod_name, &attr_name)) {
Expand All @@ -18,7 +18,7 @@ pyimport_getmoduleattr(PyObject *self, PyObject *args)

// Test PyImport_ImportModuleAttrString()
static PyObject *
pyimport_getmoduleattrstring(PyObject *self, PyObject *args)
pyimport_importmoduleattrstring(PyObject *self, PyObject *args)
{
const char *mod_name, *attr_name;
Py_ssize_t len;
Expand All @@ -31,8 +31,8 @@ pyimport_getmoduleattrstring(PyObject *self, PyObject *args)


static PyMethodDef test_methods[] = {
{"PyImport_ImportModuleAttr", pyimport_getmoduleattr, METH_VARARGS},
{"PyImport_ImportModuleAttrString", pyimport_getmoduleattrstring, METH_VARARGS},
{"PyImport_ImportModuleAttr", pyimport_importmoduleattr, METH_VARARGS},
{"PyImport_ImportModuleAttrString", pyimport_importmoduleattrstring, METH_VARARGS},
{NULL},
};

Expand Down

0 comments on commit 95c739f

Please sign in to comment.