Skip to content

Commit 95c739f

Browse files
committed
Rename also _testcapi functions
1 parent 22d4856 commit 95c739f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Modules/_testcapi/import.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// Test PyImport_ImportModuleAttr()
55
static PyObject *
6-
pyimport_getmoduleattr(PyObject *self, PyObject *args)
6+
pyimport_importmoduleattr(PyObject *self, PyObject *args)
77
{
88
PyObject *mod_name, *attr_name;
99
if (!PyArg_ParseTuple(args, "OO", &mod_name, &attr_name)) {
@@ -18,7 +18,7 @@ pyimport_getmoduleattr(PyObject *self, PyObject *args)
1818

1919
// Test PyImport_ImportModuleAttrString()
2020
static PyObject *
21-
pyimport_getmoduleattrstring(PyObject *self, PyObject *args)
21+
pyimport_importmoduleattrstring(PyObject *self, PyObject *args)
2222
{
2323
const char *mod_name, *attr_name;
2424
Py_ssize_t len;
@@ -31,8 +31,8 @@ pyimport_getmoduleattrstring(PyObject *self, PyObject *args)
3131

3232

3333
static PyMethodDef test_methods[] = {
34-
{"PyImport_ImportModuleAttr", pyimport_getmoduleattr, METH_VARARGS},
35-
{"PyImport_ImportModuleAttrString", pyimport_getmoduleattrstring, METH_VARARGS},
34+
{"PyImport_ImportModuleAttr", pyimport_importmoduleattr, METH_VARARGS},
35+
{"PyImport_ImportModuleAttrString", pyimport_importmoduleattrstring, METH_VARARGS},
3636
{NULL},
3737
};
3838

0 commit comments

Comments
 (0)