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