(index)
| 779 | yield sys._getframe().f_locals |
| 780 | |
| 781 | def get_frame_locals(index): |
| 782 | if index == 1: |
| 783 | nonlocal frame_locals1 |
| 784 | next(g1()) |
| 785 | return frame_locals1 |
| 786 | if index == 2: |
| 787 | return next(g2()) |
| 788 | else: |
| 789 | return None |
| 790 | |
| 791 | for index in (1, 2): |
| 792 | with self.subTest(index=index): |