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

Method test_user_defined_exception

Lib/test/test__interpreters.py:1002–1007  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1000 """)
1001
1002 def test_user_defined_exception(self):
1003 self.assert_run_failed_msg('MyError', 'spam', """
1004 class MyError(Exception):
1005 pass
1006 raise MyError('spam')
1007 """)
1008
1009
1010class RunFuncTests(TestBase):

Callers

nothing calls this directly

Calls 1

assert_run_failed_msgMethod · 0.95

Tested by

no test coverage detected