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