Skip to content

[3.14] gh-160206: Close connection explicitly in test_ssl (GH-160222) - #160274

Merged
vstinner merged 1 commit into
python:3.14from
miss-islington:backport-9d42aee-3.14
Oct 22, 2026
Merged

vstinner merged 1 commit into
python:3.14from
miss-islington:backport-9d42aee-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

test_https_client_non_tls_response_ignored() now uses a context
manager for the server and always closes the connection to avoid
ResourceWarning.

Also add a timeout to SingleConnectionTestServerThread.exit() to
not hang forever if something goes wrong.
(cherry picked from commit 9d42aee)

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

…0222)

test_https_client_non_tls_response_ignored() now uses a context
manager for the server and always closes the connection to avoid
ResourceWarning.

Also add a timeout to SingleConnectionTestServerThread.__exit__() to
not hang forever if something goes wrong.
(cherry picked from commit 9d42aee)

Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-app bedevere-app Bot added tests Tests in the Lib/test dir skip news topic-SSL labels Oct 22, 2026
@vstinner
vstinner enabled auto-merge (squash) October 22, 2026 17:51
@vstinner
vstinner merged commit 66fabd8 into python:3.14 Oct 22, 2026
55 checks passed
@miss-islington
miss-islington deleted the backport-9d42aee-3.14 branch October 22, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir topic-SSL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants