summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_regrtest.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-08-17 10:22:52 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-08-17 10:22:52 (GMT)
commit435eaf4422c50a37594d4c2d6ba46317c7e102fa (patch)
tree2cf8ec1b4e8e4288c981eb0963a5cab76ae2c48a /Lib/test/test_regrtest.py
parentf7457001a642f0fced2d08971c7926d9059092cd (diff)
downloadcpython-435eaf4422c50a37594d4c2d6ba46317c7e102fa.zip
cpython-435eaf4422c50a37594d4c2d6ba46317c7e102fa.tar.gz
cpython-435eaf4422c50a37594d4c2d6ba46317c7e102fa.tar.bz2
regrtest: nicer output for durations
Use milliseconds and minutes units, not only seconds.
Diffstat (limited to 'Lib/test/test_regrtest.py')
-rw-r--r--Lib/test/test_regrtest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_regrtest.py b/Lib/test/test_regrtest.py
index 4a96c6f..0b6f2ea 100644
--- a/Lib/test/test_regrtest.py
+++ b/Lib/test/test_regrtest.py
@@ -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)