]> granicus.if.org Git - python/commit
bpo-36670: Multiple regrtest bugfixes (GH-16511)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 1 Oct 2019 10:47:52 +0000 (03:47 -0700)
committerGitHub <noreply@github.com>
Tue, 1 Oct 2019 10:47:52 +0000 (03:47 -0700)
commit6b4c70abcaa348c84a2c1bb6f5a46596cf358e36
tree8cd431d6ccde23ecc1d6db995ea16c12a8f6aa96
parentd49f096cc41f57155efe71cd089c29b38c218488
bpo-36670: Multiple regrtest bugfixes (GH-16511)

* Windows: Fix counter name in WindowsLoadTracker. Counter names are
  localized: use the registry to get the counter name. Original
  change written by Lorenz Mende.
* Regrtest.main() now ensures that the Windows load tracker is also
  killed if an exception is raised
* TestWorkerProcess now ensures that worker processes are no longer
  running before exiting: kill also worker processes when an
  exception is raised.
* Enhance regrtest messages and warnings: include test name,
  duration, add a worker identifier, etc.
* Rename MultiprocessRunner to TestWorkerProcess
* Use print_warning() to display warnings.

Co-Authored-By: Lorenz Mende <Lorenz.mende@gmail.com>
(cherry picked from commit 982bfa4da07b2e5749a0f4e68f99e972bcc3a549)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Lib/test/libregrtest/main.py
Lib/test/libregrtest/runtest_mp.py
Lib/test/libregrtest/win_utils.py