MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_exception

Method test_exception

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

Source from the content-addressed store, hash-verified

109 ])
110
111 def test_exception(self):
112 def f(p):
113 1/0
114 f_ident = ident(f)
115 self.check_events(f, [(1, 'call', f_ident),
116 (1, 'return', f_ident),
117 ])
118
119 def test_caught_exception(self):
120 def f(p):

Callers

nothing calls this directly

Calls 2

identFunction · 0.85
check_eventsMethod · 0.45

Tested by

no test coverage detected