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

Method test_try_except

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

Source from the content-addressed store, hash-verified

676 self.check_lines(func, [1,2,3,6])
677
678 def test_try_except(self):
679
680 def func1():
681 try:
682 line = 2
683 line = 3
684 except:
685 line = 5
686 line = 6
687
688 self.check_lines(func1, [1,2,3,6])
689
690 def func2():
691 try:
692 line = 2
693 raise 3
694 except:
695 line = 5
696 line = 6
697
698 self.check_lines(func2, [1,2,3,4,5,6])
699
700 def test_generator_with_line(self):
701

Callers

nothing calls this directly

Calls 1

check_linesMethod · 0.95

Tested by

no test coverage detected