()
| 450 | pass |
| 451 | |
| 452 | def f(): |
| 453 | g = gen() |
| 454 | next(g) |
| 455 | try: |
| 456 | try: |
| 457 | raise ValueError |
| 458 | except ValueError: |
| 459 | del g |
| 460 | raise KeyError |
| 461 | except Exception as e: |
| 462 | self.assertIsInstance(e.__context__, ValueError) |
| 463 | |
| 464 | f() |
| 465 |
nothing calls this directly
no test coverage detected