bpo-36670, regrtest: Fix repr(TestWorkerProcess) by vstinner · Pull Request #16537 · python/cpython (original) (raw)

vstinner added a commit that referenced this pull request

Apr 14, 2020

@vstinner @zooba

(cherry picked from commit 2ea71a0)

Fix a warning on a race condition on TestWorkerProcess.kill(): ignore silently ProcessLookupError rather than logging an useless warning.

(cherry picked from commit a661392)

test.regrtest now uses process groups in the multiprocessing mode (-jN command line option) if process groups are available: if os.setsid() and os.killpg() functions are available.

(cherry picked from commit ecb035c)

When building Python in some uncommon platforms there are some known tests that will fail. Right now, the test suite has the ability to ignore entire tests using the -x option and to receive a filter file using the --matchfile filter. The problem with the --matchfile option is that it receives a file with patterns to accept and when you want to ignore a couple of tests and subtests, is too cumbersome to lists ALL tests that are not the ones that you want to accept and he problem with -x is that is not easy to ignore just a subtests that fail and the whole test needs to be ignored.

For these reasons, add a new option to allow to ignore a list of test and subtests for these situations.

(cherry picked from commit e0cd8aa)

Reduce also worker timeout.

(cherry picked from commit 4cf65a6)

Co-authored-by: Pablo Galindo Pablogsal@gmail.com (cherry picked from commit 67b8a1f)

(cherry picked from commit 9ddc416)

Co-authored-by: Steve Dower steve.dower@python.org