]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-141563: Fix test_cext on Windows (#144677)
authorVictor Stinner <vstinner@python.org>
Tue, 10 Feb 2026 17:27:44 +0000 (18:27 +0100)
committerGitHub <noreply@github.com>
Tue, 10 Feb 2026 17:27:44 +0000 (17:27 +0000)
The 'module' argument is now always needed to call the test_datetime
method.

Lib/test/test_cext/extension.c

index 28531b47383b85543f1e1831856af0aecda2e131..a2f6151d8b36ed4fe6ca76dffb522b2baff022d5 100644 (file)
@@ -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;