]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43406: Fix test_signal.test_stress_modifying_handlers() (GH-24815)
authorVictor Stinner <vstinner@python.org>
Wed, 10 Mar 2021 14:26:45 +0000 (15:26 +0100)
committerGitHub <noreply@github.com>
Wed, 10 Mar 2021 14:26:45 +0000 (15:26 +0100)
commit1fa17e8cc62775a2e34b158135ce8589f9394f03
tree01c34fb5d07249430773aa7bbac5511bea835b73
parenta9c03d7fb78ab79710f79190f0584a09d9fd1a61
bpo-43406: Fix test_signal.test_stress_modifying_handlers() (GH-24815)

Fix a race condition of test_stress_modifying_handlers() of
test_signal: only raise signals while we are in the
catch_unraisable_exception() context manager.
Moreover, don't check if we received at least one
signal if at least one signal got ignored.
Lib/test/test_signal.py