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

Method test_main_fixed_reps

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

Source from the content-addressed store, hash-verified

288 "35 loops, best of 5: 2 sec per loop\n")
289
290 def test_main_fixed_reps(self):
291 s = self.run_main(seconds_per_increment=60.0, switches=['-r9'])
292 self.assertEqual(s, "1 loop, best of 9: 60 sec per loop\n")
293
294 def test_main_negative_reps(self):
295 s = self.run_main(seconds_per_increment=60.0, switches=['-r-5'])

Callers

nothing calls this directly

Calls 2

run_mainMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected