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

Method test_caught_exception

Lib/test/test_sys_setprofile.py:124–131  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

122 ])
123
124 def test_caught_exception(self):
125 def f(p):
126 try: 1/0
127 except ZeroDivisionError: pass
128 f_ident = ident(f)
129 self.check_events(f, [(1, 'call', f_ident),
130 (1, 'return', f_ident),
131 ])
132
133 def test_caught_nested_exception(self):
134 def f(p):

Callers

nothing calls this directly

Calls 2

identFunction · 0.85
check_eventsMethod · 0.45

Tested by

no test coverage detected