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

Method test_autorange_with_target_time

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

Source from the content-addressed store, hash-verified

380 self.assertEqual(time_taken, 1.0)
381
382 def test_autorange_with_target_time(self):
383 num_loops, time_taken = self.autorange(target_time=1.0)
384 self.assertEqual(num_loops, 2000)
385 self.assertEqual(time_taken, 2000/1024)
386
387 def test_autorange_with_callback(self):
388 def callback(a, b):

Callers

nothing calls this directly

Calls 2

autorangeMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected