mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
regrtest: nicer output for durations
Use milliseconds and minutes units, not only seconds.
This commit is contained in:
parent
f7457001a6
commit
435eaf4422
2 changed files with 21 additions and 14 deletions
|
|
@ -660,13 +660,13 @@ class ArgsTestCase(BaseTestCase):
|
|||
output = self.run_tests(test, exitcode=1)
|
||||
self.check_executed_tests(output, test, omitted=test)
|
||||
|
||||
def test_slow(self):
|
||||
def test_slowest(self):
|
||||
# test --slowest
|
||||
tests = [self.create_test() for index in range(3)]
|
||||
output = self.run_tests("--slowest", *tests)
|
||||
self.check_executed_tests(output, tests)
|
||||
regex = ('10 slowest tests:\n'
|
||||
'(?:%s: [0-9]+\.[0-9]+s\n){%s}'
|
||||
'(?:- %s: .*\n){%s}'
|
||||
% (self.TESTNAME_REGEX, len(tests)))
|
||||
self.check_line(output, regex)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue