@@ -2214,7 +2214,7 @@ static int test_repeated_init_and_inittab(void)
22142214}
22152215
22162216static PyObject * create_module (PyObject * self , PyObject * spec ) {
2217- return PyImport_CreateModuleFromInitfunc (spec , PyInit_embedded_ext );
2217+ return PyImport_CreateModuleFromInitfunc (spec , init_my_test_extension );
22182218}
22192219
22202220static PyMethodDef create_static_module_methods [] = {
@@ -2236,7 +2236,7 @@ PyMODINIT_FUNC PyInit_create_static_module(void) {
22362236
22372237static int test_create_module_from_initfunc (void )
22382238{
2239- wchar_t * argv [] = {PROGRAM_NAME , L"-c" , L"import embedded_ext ; print(embedded_ext )" };
2239+ wchar_t * argv [] = {PROGRAM_NAME , L"-c" , L"import my_test_extension ; print(my_test_extension )" };
22402240 PyConfig config ;
22412241 if (PyImport_AppendInittab ("create_static_module" ,
22422242 & PyInit_create_static_module ) != 0 ) {
@@ -2256,7 +2256,7 @@ static int test_create_module_from_initfunc(void)
22562256 " _ORIGIN = \"static-extension\"\n"
22572257 " @classmethod\n"
22582258 " def find_spec(cls, fullname, path, target=None):\n"
2259- " if fullname == \"embedded_ext \":\n"
2259+ " if fullname == \"my_test_extension \":\n"
22602260 " return spec_from_loader(fullname, cls, origin=cls._ORIGIN)\n"
22612261 " return None\n"
22622262 " @staticmethod\n"
0 commit comments