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

Method test_repeat_function_zero_iters

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

Source from the content-addressed store, hash-verified

215 self.assertEqual(delta_times, [])
216
217 def test_repeat_function_zero_iters(self):
218 delta_times = timeit.repeat(self.fake_stmt, self.fake_setup, number=0,
219 timer=FakeTimer())
220 self.assertEqual(delta_times, DEFAULT_REPEAT * [0.0])
221
222 def assert_exc_string(self, exc_string, expected_exc_name):
223 exc_lines = exc_string.splitlines()

Callers

nothing calls this directly

Calls 3

FakeTimerClass · 0.85
repeatMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected