]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-126483: disable warnings filters mutation in concurrent test (GH-132694)
authorThomas Grainger <tagrain@gmail.com>
Wed, 4 Jun 2025 13:00:25 +0000 (14:00 +0100)
committerGitHub <noreply@github.com>
Wed, 4 Jun 2025 13:00:25 +0000 (09:00 -0400)
commit40c8be0008ecadb5d0dc9a017434b1133a3a6e06
tree9978e68196b30363505ec0f69605e33ec771b2f8
parentbc00ce941e03347dade3faa8822f19836b5bbfe4
gh-126483: disable warnings filters mutation in concurrent test (GH-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.
Lib/test/test_ssl.py