MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_main_exception_fixed_reps

Method test_main_exception_fixed_reps

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

Source from the content-addressed store, hash-verified

357 self.assert_exc_string(error_stringio.getvalue(), 'ZeroDivisionError')
358
359 def test_main_exception_fixed_reps(self):
360 with captured_stderr() as error_stringio:
361 s = self.run_main(switches=['-n1', '1/0'])
362 self.assert_exc_string(error_stringio.getvalue(), 'ZeroDivisionError')
363
364 def autorange(self, seconds_per_increment=1/1024, callback=None):
365 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