Skip to content

[3.15] gh-76595: Add tests for PyCapsule_Import() (GH-154588) - #154619

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-d24d9d0-3.15
Jul 24, 2026
Merged

[3.15] gh-76595: Add tests for PyCapsule_Import() (GH-154588)#154619
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-d24d9d0-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Add _testcapi helpers to create a capsule with an arbitrary name and to call PyCapsule_Import(), and Python tests covering the current behavior: only the first component of the dotted name is imported, the rest are attribute lookups.
(cherry picked from commit d24d9d0)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-Authored-By: Claude Fable 5 noreply@anthropic.com

Add _testcapi helpers to create a capsule with an arbitrary name and to call PyCapsule_Import(), and Python tests covering the current behavior: only the first component of the dotted name is imported, the rest are attribute lookups.
(cherry picked from commit d24d9d0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) July 24, 2026 15:02
@serhiy-storchaka
serhiy-storchaka merged commit b6f24be into python:3.15 Jul 24, 2026
55 checks passed
@miss-islington
miss-islington deleted the backport-d24d9d0-3.15 branch July 24, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants