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

Method test_timeit_function_zero_iters

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

Source from the content-addressed store, hash-verified

147 # self.assertEqual(delta_time, DEFAULT_NUMBER)
148
149 def test_timeit_function_zero_iters(self):
150 delta_time = timeit.timeit(self.fake_stmt, self.fake_setup, number=0,
151 timer=FakeTimer())
152 self.assertEqual(delta_time, 0)
153
154 def test_timeit_globals_args(self):
155 global _global_timer

Callers

nothing calls this directly

Calls 3

FakeTimerClass · 0.85
timeitMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected