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

Method test_main_exception

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

Source from the content-addressed store, hash-verified

352 "Unrecognized unit. Please select nsec, usec, msec, or sec.\n")
353
354 def test_main_exception(self):
355 with captured_stderr() as error_stringio:
356 s = self.run_main(switches=['1/0'])
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:

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