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

Method test_repeat_function_zero_iters

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

Source from the content-addressed store, hash-verified

216 self.assertEqual(delta_times, [])
217
218 def test_repeat_function_zero_iters(self):
219 delta_times = timeit.repeat(self.fake_stmt, self.fake_setup, number=0,
220 timer=FakeTimer())
221 self.assertEqual(delta_times, DEFAULT_REPEAT * [0.0])
222
223 def assert_exc_string(self, exc_string, expected_exc_name):
224 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