]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-128384: Fix for unreliable warnings unit tests. (gh-132611)
authorNeil Schemenauer <nas-github@arctrix.com>
Wed, 16 Apr 2025 20:13:23 +0000 (13:13 -0700)
committerGitHub <noreply@github.com>
Wed, 16 Apr 2025 20:13:23 +0000 (13:13 -0700)
commit591c982c6e57a12fbb869a1e0172d4da82a27d66
tree641497776dca5ab4fdb6b22fbc31acfce98e71e4
parentc6973eea134dcf031825d173b5e5337404e47e7d
gh-128384: Fix for unreliable warnings unit tests. (gh-132611)

When the `showwarning()` function is replaced, make sure to restore
it after the test finishes.  Add a timeout for `Barrier()` so we
don't hang for a long time if something goes wrong.
Lib/test/test_warnings/__init__.py