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

Method test_plain_exception

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

Source from the content-addressed store, hash-verified

951 # XXX Also check os._exit() (via a subprocess)?
952
953 def test_plain_exception(self):
954 self.assert_run_failed_msg(Exception, 'spam', """
955 raise Exception("spam")
956 """)
957
958 def test_invalid_syntax(self):
959 script = dedent("""

Callers

nothing calls this directly

Calls 1

assert_run_failed_msgMethod · 0.95

Tested by

no test coverage detected