Skip to content

tests: Handle builtin _ssl module on Linux#1399

Merged
moreati merged 1 commit intomitogen-hq:masterfrom
palfrey:ssl-discovery-with-builtin
Dec 30, 2025
Merged

tests: Handle builtin _ssl module on Linux#1399
moreati merged 1 commit intomitogen-hq:masterfrom
palfrey:ssl-discovery-with-builtin

Conversation

@palfrey
Copy link
Contributor

@palfrey palfrey commented Dec 28, 2025

Certainly for my local Python copy (3.14, installed via uv), the _ssl module is builtin, not an .so and so the _ssl.__file__ check fails with a lack of __file__. This PR fixes that by looking for an SSL library ref from the main Python executable if _ssl doesn't have __file__

@moreati moreati merged commit 73f60a3 into mitogen-hq:master Dec 30, 2025
24 checks passed
@moreati
Copy link
Member

moreati commented Dec 30, 2025

Thank you

@palfrey palfrey deleted the ssl-discovery-with-builtin branch December 30, 2025 11:13
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