Skip to content

[3.14] gh-126483: disable warnings filters mutation in concurrent test (GH-132694) #135131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2025

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 4, 2025

The test_ssl_in_multiple_threads test failed because test_check_hostname_idn()
modified the global warnings filters via warnings_helper.check_no_resource_warning().
Only check for warnings when the context aware warnings feature is enabled, which makes
the warnings filter context-local and thread-safe.
(cherry picked from commit 40c8be0)

Co-authored-by: Thomas Grainger tagrain@gmail.com

…pythonGH-132694)

The `test_ssl_in_multiple_threads` test failed because `test_check_hostname_idn()`
modified the global warnings filters via `warnings_helper.check_no_resource_warning()`.
Only check for warnings when the context aware warnings feature is enabled, which makes
the warnings filter context-local and thread-safe.
(cherry picked from commit 40c8be0)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
@bedevere-app bedevere-app bot added awaiting review tests Tests in the Lib/test dir skip news labels Jun 4, 2025
@colesbury colesbury enabled auto-merge (squash) June 4, 2025 13:20
@colesbury colesbury merged commit 3b01be2 into python:3.14 Jun 4, 2025
46 checks passed
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants