]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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:29:22 +0000 (15:29 +0200)
committerGitHub <noreply@github.com>
Wed, 4 Jun 2025 13:29:22 +0000 (13:29 +0000)
commitae2e7958f24af9a8f8cde115dff835517be14a90
tree1886d2029190d857a54cafbf912c5d8bfc436201
parent70c7aad30663240edd81170766da1386b0769d35
[3.13] gh-126483: disable warnings filters mutation in concurrent test (GH-132694) (GH-135132)

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()`.
Disable the warnings check in the multi-threaded test because `warnings_helper` isn't
thread-safe in 3.13 or earlier.
(cherry picked from commit 40c8be0008ecadb5d0dc9a017434b1133a3a6e06)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* Fix for 3.13

---------

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