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

Method test_ExceptionGroup

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

Source from the content-addressed store, hash-verified

992 # XXX check preserved suggestions
993
994 def test_ExceptionGroup(self):
995 self.assert_run_failed(ExceptionGroup, """
996 raise ExceptionGroup('exceptions', [
997 Exception('spam'),
998 ImportError('eggs'),
999 ])
1000 """)
1001
1002 def test_user_defined_exception(self):
1003 self.assert_run_failed_msg('MyError', 'spam', """

Callers

nothing calls this directly

Calls 1

assert_run_failedMethod · 0.95

Tested by

no test coverage detected