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

Method test_nested_exception

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

Source from the content-addressed store, hash-verified

140 ])
141
142 def test_nested_exception(self):
143 def f(p):
144 1/0
145 f_ident = ident(f)
146 self.check_events(f, [(1, 'call', f_ident),
147 # This isn't what I expected:
148 # (0, 'exception', protect_ident),
149 # I expected this again:
150 (1, 'return', f_ident),
151 ])
152
153 def test_exception_in_except_clause(self):
154 def f(p):

Callers

nothing calls this directly

Calls 2

identFunction · 0.85
check_eventsMethod · 0.45

Tested by

no test coverage detected