Skip to content

[3.15] Use _testlimitedcapi in test_free_threading.test_capi (#158935) - #159146

Merged
vstinner merged 1 commit into
python:3.15from
vstinner:test_ft_capi15
Oct 10, 2026
Merged

vstinner merged 1 commit into
python:3.15from
vstinner:test_ft_capi15

Conversation

@vstinner

Copy link
Copy Markdown
Member

Replace ctypes with _testlimitedcapi. ctypes is not always available, and _testlimitedcapi is a thin wrapper to the C API.

Skip the test if _testlimitedcapi is missing.

(cherry picked from commit 1818fba)

Replace ctypes with _testlimitedcapi. ctypes is not always available,
and _testlimitedcapi is a thin wrapper to the C API.

Skip the test if _testlimitedcapi is missing.

(cherry picked from commit 1818fba)
@bedevere-app bedevere-app Bot added awaiting core review tests Tests in the Lib/test dir labels Oct 10, 2026
@vstinner vstinner added the needs backport to 3.14 bugs and security fixes label Oct 10, 2026
@vstinner
vstinner enabled auto-merge (squash) October 10, 2026 20:36
@vstinner
vstinner merged commit c777fe5 into python:3.15 Oct 10, 2026
60 checks passed
@vstinner
vstinner deleted the test_ft_capi15 branch October 10, 2026 20:57
@miss-islington-app

Copy link
Copy Markdown

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Oct 10, 2026

Copy link
Copy Markdown

GH-159147 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Oct 10, 2026
vstinner added a commit that referenced this pull request Oct 10, 2026
…) (GH-159146) (#159147)

[3.15] Use _testlimitedcapi in test_free_threading.test_capi (GH-158935) (GH-159146)

Use _testlimitedcapi in test_free_threading.test_capi (GH-158935)

Replace ctypes with _testlimitedcapi. ctypes is not always available,
and _testlimitedcapi is a thin wrapper to the C API.

Skip the test if _testlimitedcapi is missing.
(cherry picked from commit c777fe5)


(cherry picked from commit 1818fba)

Co-authored-by: Victor Stinner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip issue skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant