From a01a05213ef8be8d34f3ce8910271de93f7f8a7d Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 10 Feb 2026 17:59:01 +0100 Subject: [PATCH] gh-141563: Fix test_cext on Windows The 'module' argument is now always needed to call the test_datetime method. --- Lib/test/test_cext/extension.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Lib/test/test_cext/extension.c b/Lib/test/test_cext/extension.c index 28531b47383b85..a2f6151d8b36ed 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;