]> granicus.if.org Git - python/commit
bpo-33873: Backport regrtest from master to 3.7 (GH-7935)
authorVictor Stinner <vstinner@redhat.com>
Tue, 26 Jun 2018 21:47:35 +0000 (23:47 +0200)
committerGitHub <noreply@github.com>
Tue, 26 Jun 2018 21:47:35 +0000 (23:47 +0200)
commitd1f9481b7a2d31c40fca1347ef99d819eb656ce7
treec9d11801aa668e3881c6558d3835978492b288c5
parent829b7669f070a6228bba5c7a10a05b12891a95fd
bpo-33873: Backport regrtest from master to 3.7 (GH-7935)

* bpo-33718: regrtest: use format_duration() to display failed tests (GH-7686)

* Enhance also format_duration(): work on integers and rounds towards
  +infinity (math.ceil).
* Write unit tests on format_duration()

(cherry picked from commit 4ffe9c2b251f6e027b26250b7a2618e78d4edd22)

* bpo-33873: regrtest: Add warning on -R 1:3 (GH-7736)

regrtest: Add warning when using less than 3 warmup runs like -R 1:3.
(cherry picked from commit cac4fef8860e66a9da67d09762f5b614b9471a12)

* bpo-33873: Fix bug in `runtest.py` and add checks for invalid `-R` parameters (GH-7735)

Fix bug in `Lib/test/libregrtest/runtest.py` that makes running tests an extra time than the specified number of runs.

Add check for invalid --huntrleaks/-R parameters.

(cherry picked from commit 58ed7307ea0b5c5aa052291ebc3030f314f938d8)
Lib/test/libregrtest/main.py
Lib/test/libregrtest/runtest.py
Lib/test/libregrtest/runtest_mp.py
Lib/test/libregrtest/utils.py
Lib/test/test_regrtest.py
Misc/NEWS.d/next/Tests/2018-06-16-01-37-31.bpo-33873.d86vab.rst [new file with mode: 0644]