Repository navigation
[tests] Backport test_cext and test_cppext (C API tests) from main to the 3.12 branch #127906
Copy link
Copy link
Closed
Closed
Copy link
Labels
Description
Activity
On the 3.12 branch, test_cext currently fails with these warnings:
C:\victor\python\3.12\include\cpython/unicodeobject.h(205): error C2220: the following warning is treated as an error C:\victor\python\3.12\include\cpython/unicodeobject.h(205): warning C4100: '_unused_op': unreferenced formal parameter C:\victor\python\3.12\include\cpython/unicodeobject.h(395): warning C4100: '_unused_op': unreferenced formal parameter C:\victor\python\3.12\include\cpython/pytime.h(192): warning C4115: 'timeval': named type definition in parentheses extension.c(22): warning C4100: '_unused_module': unreferenced formal parameter extension.c(44): warning C4100: '_unused_module': unreferenced formal parameterI backported MSVC support in Py_UNUSED() to 3.12 to fix unicodeobject.h: PR gh-127907.
C:\victor\python\3.12\include\cpython/pytime.h(192): warning C4115: 'timeval': named type definition in parentheses
I wrote #127908 to fix this pytime.h warning.
- added 11 commits that reference this issue
on Dec 13, 2024 26 remaining items
The C API is not well tested in the 3.12 branch. I propose to backport test_cext and test_cppext from the main branch to the 3.12 branch.
Example of recent C++ regression: #127902
Linked PRs