MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_timeit_function_zero_iters

Method test_timeit_function_zero_iters

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

Source from the content-addressed store, hash-verified

146 # self.assertEqual(delta_time, DEFAULT_NUMBER)
147
148 def test_timeit_function_zero_iters(self):
149 delta_time = timeit.timeit(self.fake_stmt, self.fake_setup, number=0,
150 timer=FakeTimer())
151 self.assertEqual(delta_time, 0)
152
153 def test_timeit_globals_args(self):
154 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