diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-10-18 15:55:18 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-10-18 15:55:18 (GMT) |
commit | 62cca920db113494df5183c4aad1227c6cd89c60 (patch) | |
tree | 1b45b1380f5a45b385637b6018010c1357a6082f /Lib/test | |
parent | c3e40f8c5bc7eb1c6aa60074c729219ce8881276 (diff) | |
download | cpython-62cca920db113494df5183c4aad1227c6cd89c60.zip cpython-62cca920db113494df5183c4aad1227c6cd89c60.tar.gz cpython-62cca920db113494df5183c4aad1227c6cd89c60.tar.bz2 |
timeit: add newlines to output for readability
Issue #28240.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_timeit.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_timeit.py b/Lib/test/test_timeit.py index 4e8c118..a4298b5 100644 --- a/Lib/test/test_timeit.py +++ b/Lib/test/test_timeit.py @@ -297,7 +297,9 @@ class TestTimeit(unittest.TestCase): s = self.run_main(switches=['-v']) self.assertEqual(s, dedent("""\ 1 loop -> 1 secs + raw times: 1 sec, 1 sec, 1 sec, 1 sec, 1 sec + 1 loop, best of 5: 1 sec per loop """)) @@ -309,7 +311,9 @@ class TestTimeit(unittest.TestCase): 100 loops -> 0.005 secs 1000 loops -> 0.05 secs 10000 loops -> 0.5 secs + raw times: 500 msec, 500 msec, 500 msec, 500 msec, 500 msec + 10000 loops, best of 5: 50 usec per loop """)) |