diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-10-18 15:42:48 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-10-18 15:42:48 (GMT) |
commit | c3e40f8c5bc7eb1c6aa60074c729219ce8881276 (patch) | |
tree | 3d3571cc555873633295107fba63f892ba1d5d85 /Lib/test/test_timeit.py | |
parent | 61de57f175bff135b85f66caa159861aa8ee18dd (diff) | |
download | cpython-c3e40f8c5bc7eb1c6aa60074c729219ce8881276.zip cpython-c3e40f8c5bc7eb1c6aa60074c729219ce8881276.tar.gz cpython-c3e40f8c5bc7eb1c6aa60074c729219ce8881276.tar.bz2 |
timeit: add nsec (nanosecond) unit for format timings
Issue #28240.
Diffstat (limited to 'Lib/test/test_timeit.py')
-rw-r--r-- | Lib/test/test_timeit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_timeit.py b/Lib/test/test_timeit.py index b297222..4e8c118 100644 --- a/Lib/test/test_timeit.py +++ b/Lib/test/test_timeit.py @@ -331,7 +331,7 @@ class TestTimeit(unittest.TestCase): invalid = self.run_main(seconds_per_increment=0.002, switches=['-u', 'parsec']) self.assertEqual(error_stringio.getvalue(), - "Unrecognized unit. Please select usec, msec, or sec.\n") + "Unrecognized unit. Please select nsec, usec, msec, or sec.\n") def test_main_exception(self): with captured_stderr() as error_stringio: |