Skip to content

Fix test_ssl_wrapper_transport on Python 3.13.16+/3.14.8+ - #3172

Merged
dpkp merged 1 commit into
dpkp:masterfrom
dogukancagatay:fix-ssl-wrapper-test-check-hostname
Oct 24, 2026
Merged

dpkp merged 1 commit into
dpkp:masterfrom
dogukancagatay:fix-ssl-wrapper-test-check-hostname

Conversation

@dogukancagatay

Copy link
Copy Markdown
Contributor

The new CPython patch version does the SSLObject parameter checks at wrap_bio() time and throws an error like "ValueError: check_hostname requires server_hostname". This happens when the check_hostname is set but there is no server_hostname. Our test creates KafkaSSLTransport with no host set but with ssl_check_hostname=True (default value). Fixed by setting a host a host.

The new CPython patch version does the `SSLObject` parameter checks at
`wrap_bio()` time and throws an error like "ValueError: check_hostname
requires server_hostname". This happens when the `check_hostname` is set
but there is no `server_hostname`. Our test creates `KafkaSSLTransport`
with no host set but with `ssl_check_hostname=True` (default value).
Fixed by setting a host a host.

@dpkp dpkp left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks!

@dpkp
dpkp merged commit c98e851 into dpkp:master Oct 24, 2026
20 checks passed
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