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

Method test_main_exception_fixed_reps

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

Source from the content-addressed store, hash-verified

360
361 @force_not_colorized
362 def test_main_exception_fixed_reps(self):
363 with captured_stderr() as error_stringio:
364 s = self.run_main(switches=['-n1', '1/0'])
365 self.assert_exc_string(error_stringio.getvalue(), 'ZeroDivisionError')
366
367 def autorange(self, seconds_per_increment=1/1024, callback=None, target_time=0.2):
368 timer = FakeTimer(seconds_per_increment=seconds_per_increment)

Callers

nothing calls this directly

Calls 4

run_mainMethod · 0.95
assert_exc_stringMethod · 0.95
captured_stderrFunction · 0.90
getvalueMethod · 0.45

Tested by

no test coverage detected