summaryrefslogtreecommitdiffstats
path: root/Modules/_testmultiphase.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-05-29 22:10:30 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-05-29 22:10:30 (GMT)
commite20056c8f71a8e289016c0cbd5adb5826cd91f64 (patch)
tree3bdccf6b3978fc4c989e136093e6cff999d01785 /Modules/_testmultiphase.c
parenta663121e10265bb4d05b715a262cb4c1d79da082 (diff)
downloadcpython-e20056c8f71a8e289016c0cbd5adb5826cd91f64.zip
cpython-e20056c8f71a8e289016c0cbd5adb5826cd91f64.tar.gz
cpython-e20056c8f71a8e289016c0cbd5adb5826cd91f64.tar.bz2
fix importing one char extension modules (closes #24328)
Diffstat (limited to 'Modules/_testmultiphase.c')
-rw-r--r--Modules/_testmultiphase.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/_testmultiphase.c b/Modules/_testmultiphase.c
index 0d50db2..7b98be2 100644
--- a/Modules/_testmultiphase.c
+++ b/Modules/_testmultiphase.c
@@ -321,6 +321,14 @@ PyInitU_eckzbwbhc6jpgzcx415x(PyObject *spec)
return PyModuleDef_Init(&def_nonascii_kana);
}
+/*** Module with a single-character name ***/
+
+PyMODINIT_FUNC
+PyInit_x(PyObject *spec)
+{
+ return PyModuleDef_Init(&main_def);
+}
+
/**** Testing NULL slots ****/
static PyModuleDef null_slots_def = TEST_MODULE_DEF(