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

Method test_raise_twice

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

Source from the content-addressed store, hash-verified

185 ])
186
187 def test_raise_twice(self):
188 def f(p):
189 try: 1/0
190 except ZeroDivisionError: 1/0
191 f_ident = ident(f)
192 self.check_events(f, [(1, 'call', f_ident),
193 (1, 'return', f_ident),
194 ])
195
196 def test_raise_reraise(self):
197 def f(p):

Callers

nothing calls this directly

Calls 2

identFunction · 0.85
check_eventsMethod · 0.45

Tested by

no test coverage detected