]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38547: Fix test_pty if the process is the session leader (GH-17519)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 9 Dec 2019 11:15:23 +0000 (03:15 -0800)
committerGitHub <noreply@github.com>
Mon, 9 Dec 2019 11:15:23 +0000 (03:15 -0800)
commitd08fd298dc8d5631f6c504d01ee4f9cfb47db79d
tree87e7a7e2629fc078e1df15e6b243ed46cde2ad49
parent4594565b56e9c99d2d3fb7549041bbca5ecba8e2
bpo-38547: Fix test_pty if the process is the session leader (GH-17519)

Fix test_pty: if the process is the session leader, closing the
master file descriptor raises a SIGHUP signal: simply ignore SIGHUP
when running the tests.
(cherry picked from commit a1838ec2592e5082c75c77888f2a7a3eb21133e5)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_pty.py
Misc/NEWS.d/next/Tests/2019-12-09-11-32-34.bpo-38547.Juw54e.rst [new file with mode: 0644]