Skip to content

Commit 227e089

Browse files
committed
fix: remove test_ prefix for functions in _testcapi
1 parent 9b3f8fe commit 227e089

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/test/test_structseq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def test_repr_with_interspersed_unnamed_fields(self):
7777
# shown at its own index rather than borrowing a neighbour's name. The
7878
# trailing named field is hidden and must not appear in the repr.
7979
_testcapi = import_helper.import_module("_testcapi")
80-
cls = _testcapi.test_structseq_newtype_interspersed_unnamed()
80+
cls = _testcapi.structseq_newtype_interspersed_unnamed()
8181
self.assertEqual(cls.n_fields, 5)
8282
self.assertEqual(cls.n_sequence_fields, 4)
8383
self.assertEqual(cls.n_unnamed_fields, 2)

Modules/_testcapimodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ test_structseq_newtype_null_descr_doc(PyObject *Py_UNUSED(self),
13051305
}
13061306

13071307
static PyObject *
1308-
test_structseq_newtype_interspersed_unnamed(PyObject *Py_UNUSED(self),
1308+
structseq_newtype_interspersed_unnamed(PyObject *Py_UNUSED(self),
13091309
PyObject *Py_UNUSED(args))
13101310
{
13111311
// gh-154387: unnamed fields may appear anywhere among the visible fields
@@ -3029,8 +3029,8 @@ static PyMethodDef TestMethods[] = {
30293029
test_structseq_newtype_doesnt_leak, METH_NOARGS},
30303030
{"test_structseq_newtype_null_descr_doc",
30313031
test_structseq_newtype_null_descr_doc, METH_NOARGS},
3032-
{"test_structseq_newtype_interspersed_unnamed",
3033-
test_structseq_newtype_interspersed_unnamed, METH_NOARGS},
3032+
{"structseq_newtype_interspersed_unnamed",
3033+
structseq_newtype_interspersed_unnamed, METH_NOARGS},
30343034
{"pyobject_repr_from_null", pyobject_repr_from_null, METH_NOARGS},
30353035
{"pyobject_str_from_null", pyobject_str_from_null, METH_NOARGS},
30363036
{"pyobject_bytes_from_null", pyobject_bytes_from_null, METH_NOARGS},

0 commit comments

Comments
 (0)