[3.8] bpo-38547: Fix test_pty if the process is the session leader (GH-17519) by miss-islington · Pull Request #17520 · python/cpython

@vstinner @miss-islington

…H-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 a1838ec)

Co-authored-by: Victor Stinner <vstinner@python.org>

vstinner