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

Method test_autorange_second

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

Source from the content-addressed store, hash-verified

375 self.assertEqual(time_taken, 500/1024)
376
377 def test_autorange_second(self):
378 num_loops, time_taken = self.autorange(seconds_per_increment=1.0)
379 self.assertEqual(num_loops, 1)
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)

Callers

nothing calls this directly

Calls 2

autorangeMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected