Skip to content

Commit aa43538

Browse files
committed
Adjust module names in the 3_13 module
1 parent 65f3fd0 commit aa43538

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Lib/test/test_xxlimited.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def test_xxo_demo(self, module):
7171
xxo = module.Xxo()
7272
self.assertEqual(xxo.demo("abc"), "abc")
7373
self.assertEqual(xxo.demo(0), None)
74+
self.assertEqual(xxo.__module__, module.__name__)
7475

7576
@test_with_xxlimited_modules(since=(3, 13))
7677
def test_xxo_demo_extra(self, module):

Modules/xxlimited_3_13.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ static PyType_Slot Xxo_Type_slots[] = {
313313
};
314314

315315
static PyType_Spec Xxo_Type_spec = {
316-
.name = "xxlimited.Xxo",
316+
.name = "xxlimited_3_13.Xxo",
317317
.basicsize = sizeof(XxoObject),
318318
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
319319
.slots = Xxo_Type_slots,
@@ -328,7 +328,7 @@ static PyType_Slot Str_Type_slots[] = {
328328
};
329329

330330
static PyType_Spec Str_Type_spec = {
331-
.name = "xxlimited.Str",
331+
.name = "xxlimited_3_13.Str",
332332
.basicsize = 0,
333333
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
334334
.slots = Str_Type_slots,
@@ -390,7 +390,7 @@ xx_modexec(PyObject *m)
390390
{
391391
xx_state *state = PyModule_GetState(m);
392392

393-
state->Error_Type = PyErr_NewException("xxlimited.Error", NULL, NULL);
393+
state->Error_Type = PyErr_NewException("xxlimited_3_13.Error", NULL, NULL);
394394
if (state->Error_Type == NULL) {
395395
return -1;
396396
}
@@ -477,7 +477,7 @@ xx_free(void *module)
477477

478478
static struct PyModuleDef xxmodule = {
479479
PyModuleDef_HEAD_INIT,
480-
.m_name = "xxlimited",
480+
.m_name = "xxlimited_3_13",
481481
.m_doc = module_doc,
482482
.m_size = sizeof(xx_state),
483483
.m_methods = xx_methods,

0 commit comments

Comments
 (0)