]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-110033: Fix signal test_interprocess_signal() (GH-110035) (#110040)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 2 Oct 2023 15:42:40 +0000 (08:42 -0700)
committerGitHub <noreply@github.com>
Mon, 2 Oct 2023 15:42:40 +0000 (17:42 +0200)
commit4bdcb99469ed4d9e4ab2ef3586985a081a18b2bb
treed59e78529941e550eade5ae7e926a8e1d24c64e6
parent9cf6d89165ac5543c5c2a3112f303f32778c2548
[3.12] gh-110033: Fix signal test_interprocess_signal() (GH-110035) (#110040)

gh-110033: Fix signal test_interprocess_signal() (GH-110035)

Fix test_interprocess_signal() of test_signal. Make sure that the
subprocess.Popen object is deleted before the test raising an
exception in a signal handler. Otherwise, Popen.__del__() can get the
exception which is logged as "Exception ignored in: ...." and the
test fails.
(cherry picked from commit 7e0fbf5175fcf21dae390ba68b7f49706d62aa49)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/signalinterproctester.py
Misc/NEWS.d/next/Tests/2023-09-28-18-14-52.gh-issue-110033.2yHMx0.rst [new file with mode: 0644]