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

Method test_main_exception

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

Source from the content-addressed store, hash-verified

354
355 @force_not_colorized
356 def test_main_exception(self):
357 with captured_stderr() as error_stringio:
358 s = self.run_main(switches=['1/0'])
359 self.assert_exc_string(error_stringio.getvalue(), 'ZeroDivisionError')
360
361 @force_not_colorized
362 def test_main_exception_fixed_reps(self):

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