]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-110033: Fix signal test_interprocess_signal() (GH-110035) (#110041)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 28 Sep 2023 17:48:58 +0000 (10:48 -0700)
committerGitHub <noreply@github.com>
Thu, 28 Sep 2023 17:48:58 +0000 (17:48 +0000)
commit973d549e72dc81594086cbac294274ed0ab5bf40
treef8dc0f3ec2dd83cd4e8c097def78a9ef6e0adec3
parentff3cadd2a1df9bdf0b82bf21ae1d70e5bda23a5c
[3.11] gh-110033: Fix signal test_interprocess_signal() (GH-110035) (#110041)

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]