gh-140550: Enable limited C API tests on Free Threading in test_cext - #157493
Conversation
…_cext Enable limited C API tests on Free Threading in test_cext and test_cppext: test Py_TARGET_ABI3T macro. * Convert test_cppext to PySlot API using PySlot_PTR_STATIC(). * Define Py_MOD_GIL_NOT_USED in test_cext and test_cppext. * Disable C++ test_virtual_object() if Py_TARGET_ABI3T is defined. * Remove ";" from PyABIInfo_VAR macro definition, since "PyABIInfo_VAR(abi_info);" added two ";;" which is illegal in C++03.
|
cc @encukou |
|
!buildbot |
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit 9bed8d3 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F157493%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
|
test_limited_cpp03ext() of test_cppext failed on ARM64 macOS: test.pythoninfo logs I supposed that we should disable |
Only on |
|
x86-64 MacOS Intel NoGIL PR failed the same way: test_limited_cpp03ext() of test_cppext failed with: test_cppext uses clang++. test.pythoninfo says |
|
!buildbot ARM64 macOS PR |
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit 5b05582 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F157493%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
|
!buildbot x86-64 MacOS Intel NoGIL PR |
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit 5b05582 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F157493%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
|
I pushed a fix for the warning on "cast between pointer-to-function and pointer-to-object is an extension" in pedantic mode. |
|
!buildbot x86-64 MacOS Intel NoGIL PR |
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit 5b05582 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F157493%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
|
Good, the test suite passed on "buildbot/ARM64 macOS PR" and "buildbot/x86-64 MacOS Intel NoGIL PR". |
|
I will wait until #157539 is merged, and then merge this change on top of it. |
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15. |
|
GH-157560 is a backport of this pull request to the 3.15 branch. |
Enable limited C API tests on Free Threading in test_cext and test_cppext: test Py_TARGET_ABI3T macro.