]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-126483: disable warnings filters mutation in concurrent test (GH-132694...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 4 Jun 2025 13:25:47 +0000 (15:25 +0200)
committerGitHub <noreply@github.com>
Wed, 4 Jun 2025 13:25:47 +0000 (13:25 +0000)
commit3b01be24e715ce5f07ea015c9f73450b8abd1f08
tree5fdf4f6443fe735406db7a94e8cb7b16349f80e3
parent5008317dcdd6051a3af0899f051e805234539546
[3.14] gh-126483: disable warnings filters mutation in concurrent test (GH-132694) (GH-135131)

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 40c8be0008ecadb5d0dc9a017434b1133a3a6e06)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Lib/test/test_ssl.py