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

Method test_try_except

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

Source from the content-addressed store, hash-verified

682 self.check_lines(func, [1,2,3,6])
683
684 def test_try_except(self):
685
686 def func1():
687 try:
688 line = 2
689 line = 3
690 except:
691 line = 5
692 line = 6
693
694 self.check_lines(func1, [1,2,3,6])
695
696 def func2():
697 try:
698 line = 2
699 raise 3
700 except:
701 line = 5
702 line = 6
703
704 self.check_lines(func2, [1,2,3,4,5,6])
705
706 def test_generator_with_line(self):
707

Callers

nothing calls this directly

Calls 1

check_linesMethod · 0.95

Tested by

no test coverage detected