(self)
| 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 |
nothing calls this directly
no test coverage detected