]> granicus.if.org Git - python/commit
bpo-36670: Enhance regrtest (GH-16556)
authorVictor Stinner <vstinner@python.org>
Thu, 3 Oct 2019 14:15:16 +0000 (16:15 +0200)
committerGitHub <noreply@github.com>
Thu, 3 Oct 2019 14:15:16 +0000 (16:15 +0200)
commit098e25672f1c3578855d5ded4f5147795c9ed956
tree80a8a09e94f5ec3c1a5dcc0538db23ff63754674
parentc65119d5bfded03f80a9805889391b66fa7bf551
bpo-36670: Enhance regrtest (GH-16556)

* Add log() method: add timestamp and load average prefixes
  to main messages.
* WindowsLoadTracker:

  * LOAD_FACTOR_1 is now computed using SAMPLING_INTERVAL
  * Initialize the load to the arithmetic mean of the first 5 values
    of the Processor Queue Length value (so over 5 seconds), rather
    than 0.0.
  * Handle BrokenPipeError and when typeperf exit.

* format_duration(1.5) now returns '1.5 sec', rather than
  '1 sec 500 ms'
Lib/test/libregrtest/main.py
Lib/test/libregrtest/runtest_mp.py
Lib/test/libregrtest/utils.py
Lib/test/libregrtest/win_utils.py
Lib/test/test_regrtest.py