From: Victor Stinner Date: Tue, 10 Feb 2026 17:27:44 +0000 (+0100) Subject: gh-141563: Fix test_cext on Windows (#144677) X-Git-Tag: v3.15.0a6~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eb6d0e0b2b9f1cc36fb2b7e396bf3100214b3e09;p=thirdparty%2FPython%2Fcpython.git gh-141563: Fix test_cext on Windows (#144677) The 'module' argument is now always needed to call the test_datetime method. --- diff --git a/Lib/test/test_cext/extension.c b/Lib/test/test_cext/extension.c index 28531b47383b..a2f6151d8b36 100644 --- a/Lib/test/test_cext/extension.c +++ b/Lib/test/test_cext/extension.c @@ -74,13 +74,7 @@ static PyMethodDef _testcext_methods[] = { static int -_testcext_exec( -#ifdef __STDC_VERSION__ - PyObject *module -#else - PyObject *Py_UNUSED(module) -#endif - ) +_testcext_exec(PyObject *module) { PyObject *result;