(iterator=None)
| 887 | return 2 |
| 888 | |
| 889 | def implicit_stop_iteration(iterator=None): |
| 890 | if iterator is None: |
| 891 | iterator = gen() |
| 892 | for _ in iterator: |
| 893 | pass |
| 894 | |
| 895 | recorders=(ExceptionRecorder, StopiterationRecorder,) |
| 896 | expected = [("raise", StopIteration)] |