Skip to content

[3.15] gh-140550: Enable limited C API tests on Free Threading in test_cext (GH-157493) - #157560

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-fb123c8-3.15
Open

miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-fb123c8-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

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.
    (cherry picked from commit fb123c8)

Co-authored-by: Victor Stinner vstinner@python.org

…_cext (pythonGH-157493)

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.
(cherry picked from commit fb123c8)

Co-authored-by: Victor Stinner <vstinner@python.org>

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This change can wait for Python 3.15.1 bugfix release.

@vstinner

Copy link
Copy Markdown
Member

Note to myself: it would be safer to run buildbot checks once the 3.15 branch will be unlocked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants