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

Method test_simple_try_except

Lib/test/test_monitoring.py:864–874  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

862 )
863
864 def test_simple_try_except(self):
865
866 def func1():
867 try:
868 line = 2
869 raise KeyError
870 except:
871 line = 5
872 line = 6
873
874 self.check_events(func1, [("raise", KeyError)])
875
876 def test_implicit_stop_iteration(self):
877 """Generators are documented as raising a StopIteration

Callers

nothing calls this directly

Calls 1

check_eventsMethod · 0.45

Tested by

no test coverage detected