MCPcopy Index your code
hub / github.com/python/cpython / test_main_verbose

Method test_main_verbose

Lib/test/test_timeit.py:303–311  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

301 self.assertEqual(s, timeit.__doc__)
302
303 def test_main_verbose(self):
304 s = self.run_main(switches=['-v'])
305 self.assertEqual(s, dedent("""\
306 1 loop -> 1 secs
307
308 raw times: 1 sec, 1 sec, 1 sec, 1 sec, 1 sec
309
310 1 loop, best of 5: 1 sec per loop
311 """))
312
313 def test_main_very_verbose(self):
314 s = self.run_main(seconds_per_increment=0.000_030, switches=['-vv'])

Callers

nothing calls this directly

Calls 3

run_mainMethod · 0.95
dedentFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected