]> 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 12:09:02 +0000 (14:09 +0200)
committerGitHub <noreply@github.com>
Fri, 3 Apr 2020 12:09:02 +0000 (14:09 +0200)
commit0961dbdea2a449fc5b7d77610d6d10e6036fbdf3
tree5ee6c1362ce33904bba9e0b3e245097feb3d9327
parent00c779fd9c0a9e7586681a44e35607c1113b5014
bpo-40140: test_builtin.PtyTests registers SIGHUP handler (GH-19314) (GH-19316) (GH-19318)

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)
(cherry picked from commit 745bd91bab8e57c52d63a2d541465551d7551f78)
Lib/test/test_builtin.py
Lib/test/test_pty.py