Skip to content

Commit eb6d0e0

Browse files
authored
gh-141563: Fix test_cext on Windows (#144677)
The 'module' argument is now always needed to call the test_datetime method.
1 parent b4a620d commit eb6d0e0

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)