STINNER Victor added the comment:
I modified regrtest to use process groups in bpo-38502. It doesn't solve
exactly this issue, but it does fix the overall problem of leaking running
processes when a test fails for various reasons. For example, when using
regrtest in multiprocessing (-jN) mod
STINNER Victor added the comment:
I see two options:
* faulthandler calls killpg(SIGABRT) on timeout to kill child processes (but it
should ignore temporary the signal to not kill itself)
* use a timeout, but shorter than the global timeout, for child processes
Not all tests use script_helper.
New submission from Charles-François Natali:
Currently, the test suite, as well as processes spawned by the
script_helper.assert_python family, are run with faulthandler enabled.
That's great to debug crashes, but it would be even better if those processes
were started with faulthandler's timeo