]> granicus.if.org Git - python/commit
bpo-36670: regrtest bug fixes (GH-16537)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 2 Oct 2019 11:54:18 +0000 (04:54 -0700)
committerGitHub <noreply@github.com>
Wed, 2 Oct 2019 11:54:18 +0000 (04:54 -0700)
commita72de9338882b8013a4bb8adb930fe3308682e28
tree15b34ed77b4ce478c1547306e6b99ef4be34e3c5
parenta11df75269b5d47248be617ed02e96c1d1938fd1
bpo-36670: regrtest bug fixes (GH-16537)

* Fix TestWorkerProcess.__repr__(): start_time is only valid
  if _popen is not None.
* Fix _kill(): don't set _killed to True if _popen is None.
* _run_process(): only set _killed to False after calling
  run_test_in_subprocess().
(cherry picked from commit 2ea71a07d0a720707094ee55f78fd232c40724bc)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/libregrtest/runtest_mp.py