]> granicus.if.org Git - python/commit
bpo-36915: regrtest always remove tempdir of worker processes (GH-13312)
authorVictor Stinner <vstinner@redhat.com>
Tue, 14 May 2019 13:49:16 +0000 (15:49 +0200)
committerGitHub <noreply@github.com>
Tue, 14 May 2019 13:49:16 +0000 (15:49 +0200)
commit3c93153f7db5dd9b06f229e61978fd9199b3c097
treeb25667f4b3502b66fcd74aa98e5661da01fd2fa0
parent2bc158fefe89db8dfdd6d03ae6b3f2caa2f0cd6c
bpo-36915: regrtest always remove tempdir of worker processes (GH-13312)

When using multiprocessing (-jN option), worker processes now create
their temporary directory inside the temporary directory of the
main process. So the main process is able to remove temporary
directories of worker processes even if they crash or when they are
killed by regrtest on KeyboardInterrupt (CTRL+c).

Rework also how multiprocessing arguments are parsed in main.py.
Lib/test/libregrtest/main.py
Lib/test/libregrtest/runtest_mp.py
Misc/NEWS.d/next/Tests/2019-05-14-14-12-24.bpo-36915.58b7pH.rst [new file with mode: 0644]