]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-146358: Fix warnings.catch_warnings on Free Threading (GH-146374) (#146418)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 25 Mar 2026 16:23:21 +0000 (17:23 +0100)
committerGitHub <noreply@github.com>
Wed, 25 Mar 2026 16:23:21 +0000 (16:23 +0000)
commite34945a94c8ed084d6742da0393880c975ebbc51
tree40295f77e741a6771bc52438a1cef53ace3751af
parentce789046015205bb2a0ad92c669287d8c3519615
[3.14] gh-146358: Fix warnings.catch_warnings on Free Threading (GH-146374) (#146418)

gh-146358: Fix warnings.catch_warnings on Free Threading (GH-146374)

catch_warnings now also overrides warnings.showwarning() on Free
Threading to support custom warnings.showwarning().
(cherry picked from commit 0055140b2cf3e3a86ef9ab7a39e2083212b27c58)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/_py_warnings.py
Lib/test/test_warnings/__init__.py