Skip to content

Commit 1ad68bf

Browse files
committed
gh-140550: Removp PyInit function from test_cext
1 parent 732224e commit 1ad68bf

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

Lib/test/test_cext/extension.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,3 @@ FUNC_NAME(MODULE_NAME)(void)
111111
{
112112
return _testcext_slots;
113113
}
114-
115-
// Also define the soft-deprecated entrypoint to ensure it isn't called
116-
117-
#define _INITFUNC_NAME(NAME) PyInit_ ## NAME
118-
#define INITFUNC_NAME(NAME) _INITFUNC_NAME(NAME)
119-
120-
PyMODINIT_FUNC
121-
INITFUNC_NAME(MODULE_NAME)(void)
122-
{
123-
PyErr_SetString(
124-
PyExc_AssertionError,
125-
"PyInit_* function called while a PyModExport_* one is available");
126-
return NULL;
127-
}

0 commit comments

Comments
 (0)