]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] bpo-37531: Enhance regrtest multiprocess timeout (GH-15345) (GH-15874)
authorVictor Stinner <vstinner@redhat.com>
Tue, 10 Sep 2019 15:54:40 +0000 (17:54 +0200)
committerGitHub <noreply@github.com>
Tue, 10 Sep 2019 15:54:40 +0000 (17:54 +0200)
commit494b61aeec8e583755c8ff3a147a58657353bbc3
tree959b2134ab06be6e83834e3386760425f32f05d7
parent816825e192ed430438c613d52a58fb9e1a8d90f4
[3.7] bpo-37531: Enhance regrtest multiprocess timeout (GH-15345) (GH-15874)

bpo-37531: Enhance regrtest multiprocess timeout (GH-15345)

* Write a message when killing a worker process
* Put a timeout on the second popen.communicate() call
  (after killing the process)
* Put a timeout on popen.wait() call
* Catch popen.kill() and popen.wait() exceptions

(cherry picked from commit de2d9eed8bc628533e1628b843cc4c7a5010f6e5)
Lib/test/libregrtest/main.py
Lib/test/libregrtest/runtest_mp.py
Misc/NEWS.d/next/Tests/2019-08-20-19-24-19.bpo-37531.wRoXfU.rst [new file with mode: 0644]