]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40140: test_builtin.PtyTests registers SIGHUP handler (GH-19314)
authorVictor Stinner <vstinner@python.org>
Thu, 2 Apr 2020 22:40:25 +0000 (00:40 +0200)
committerGitHub <noreply@github.com>
Thu, 2 Apr 2020 22:40:25 +0000 (00:40 +0200)
commit7a51a7e19f0143f75f8fc9ff68f93ed40937aec6
treea716f19384fc31145ea61fb5579b4774d873d2d2
parent3c3aa4516c70753de06bb142b6793d01330fcf0f
bpo-40140: test_builtin.PtyTests registers SIGHUP handler (GH-19314)

test_builtin.PtyTests now registers an handler for SIGHUP signal.
Closing the PTY file descriptor can emit a SIGHUP signal: just ignore
it.

run_child() now also closes the PTY file descriptor before waiting
for the process completition, otherwise the test hangs on AIX.
Lib/test/test_builtin.py
Lib/test/test_pty.py