]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40140: test_builtin.PtyTests registers SIGHUP handler (GH-19314) (GH-19316)
authorVictor Stinner <vstinner@python.org>
Fri, 3 Apr 2020 00:11:54 +0000 (02:11 +0200)
committerGitHub <noreply@github.com>
Fri, 3 Apr 2020 00:11:54 +0000 (02:11 +0200)
commit745bd91bab8e57c52d63a2d541465551d7551f78
tree2623e578ba5271c76960be748e48015525d12d89
parent1098671e4e5ec1513247f05598158eaa3428c5be
bpo-40140: test_builtin.PtyTests registers SIGHUP handler (GH-19314) (GH-19316)

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.

(cherry picked from commit 7a51a7e19f0143f75f8fc9ff68f93ed40937aec6)
Lib/test/test_builtin.py
Lib/test/test_pty.py