diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-10-18 15:56:42 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-10-18 15:56:42 (GMT) |
commit | 61de57f175bff135b85f66caa159861aa8ee18dd (patch) | |
tree | 8a92e7e676fdaf1cb990af35907121aaabb8ef47 /Lib/test | |
parent | 3d7feb9ac2662cd6854ad34a1705e4035e2b385f (diff) | |
download | cpython-61de57f175bff135b85f66caa159861aa8ee18dd.zip cpython-61de57f175bff135b85f66caa159861aa8ee18dd.tar.gz cpython-61de57f175bff135b85f66caa159861aa8ee18dd.tar.bz2 |
timeit: enhance format of raw timings (in verbose mode)
Issue #28240.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_timeit.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_timeit.py b/Lib/test/test_timeit.py index cf4eec9..b297222 100644 --- a/Lib/test/test_timeit.py +++ b/Lib/test/test_timeit.py @@ -297,7 +297,7 @@ class TestTimeit(unittest.TestCase): s = self.run_main(switches=['-v']) self.assertEqual(s, dedent("""\ 1 loop -> 1 secs - raw times: 1 1 1 1 1 + raw times: 1 sec, 1 sec, 1 sec, 1 sec, 1 sec 1 loop, best of 5: 1 sec per loop """)) @@ -309,7 +309,7 @@ class TestTimeit(unittest.TestCase): 100 loops -> 0.005 secs 1000 loops -> 0.05 secs 10000 loops -> 0.5 secs - raw times: 0.5 0.5 0.5 0.5 0.5 + raw times: 500 msec, 500 msec, 500 msec, 500 msec, 500 msec 10000 loops, best of 5: 50 usec per loop """)) |