Skip to content

Commit a01a052

Browse files
committed
gh-141563: Fix test_cext on Windows
The 'module' argument is now always needed to call the test_datetime method.
1 parent 23d45f0 commit a01a052

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Lib/test/test_cext/extension.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,7 @@ static PyMethodDef _testcext_methods[] = {
7474

7575

7676
static int
77-
_testcext_exec(
78-
#ifdef __STDC_VERSION__
79-
PyObject *module
80-
#else
81-
PyObject *Py_UNUSED(module)
82-
#endif
83-
)
77+
_testcext_exec(PyObject *module)
8478
{
8579
PyObject *result;
8680

0 commit comments

Comments
 (0)