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
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 parameter
I 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.
[3.12] gh-127906: Declare timeval struct in pytime.h on Windows (#127908
pythongh-127906: Backport test_cext from the main branch
pythongh-127906: Backport test_cppext changes from main
pythongh-127906: Update test_cppext from the main branch
pythongh-127906: Backport test_cppext from the main branch
pythongh-127906: Test the limited C API in test_cppext
[3.12] gh-127906: Backport test_cppext changes from the main branch (#…
[3.13] gh-127906: Backport test_cppext changes from the main branch (#…
gh-127906: Test the limited C API in test_cppext (#127916)
00666: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
Activity
vstinner commented on Dec 13, 2024
On the 3.12 branch, test_cext currently fails with these warnings:
I backported MSVC support in Py_UNUSED() to 3.12 to fix unicodeobject.h: PR gh-127907.
vstinner commented on Dec 13, 2024
I wrote #127908 to fix this pytime.h warning.
[3.12] gh-127906: Declare timeval struct in pytime.h on Windows (#127908
pythongh-127906: Backport test_cext from the main branch
pythongh-127906: Backport test_cppext changes from main
pythongh-127906: Update test_cppext from the main branch
pythongh-127906: Backport test_cppext from the main branch
pythongh-127906: Test the limited C API in test_cppext
pythongh-127906: Test the limited C API in test_cppext
[3.12] gh-127906: Backport test_cppext changes from the main branch (#…
[3.13] gh-127906: Backport test_cppext changes from the main branch (#…
pythongh-127906: Test the limited C API in test_cppext
gh-127906: Test the limited C API in test_cppext (#127916)
26 remaining items
00666: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…