]> 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:07 +0000 (03:15 -0800)
committerGitHub <noreply@github.com>
Mon, 9 Dec 2019 11:15:07 +0000 (03:15 -0800)
commitb9f4b49c6e525afd6fce02cfc14be52e98a18f67
tree09d3b7cd3015fff0b942113eae7fca928c24f82a
parent41973c99fdfdc78315e819661e279bdcc2f058b1
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]