[3.6] bpo-33873: Backport regrtest from master to 3.6 (GH-7935) #7937
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
bpo-33718: regrtest: use format_duration() to display failed tests (bpo-33718: regrtest: use format_duration() to display failed tests #7686)
Enhance also format_duration(): work on integers and rounds towards
+infinity (math.ceil).
Write unit tests on format_duration()
(cherry picked from commit 4ffe9c2)
runtest.py
. #7736)regrtest: Add warning when using less than 3 warmup runs like -R 1:3.
(cherry picked from commit cac4fef)
runtest.py
and add checks for invalid-R
parameters (bpo-33873: Fix bug inruntest.py
and add checks for invalid-R
parameters #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 58ed730)
(cherry picked from commit d1f9481)
https://bugs.python.org/issue33873