(self)
| 448 | |
| 449 | class TestExceptStarReraise(ExceptStarTest): |
| 450 | def test_reraise_all_named(self): |
| 451 | try: |
| 452 | try: |
| 453 | raise ExceptionGroup( |
| 454 | "eg", [TypeError(1), ValueError(2), OSError(3)]) |
| 455 | except* TypeError as e: |
| 456 | raise |
| 457 | except* ValueError as e: |
| 458 | raise |
| 459 | # OSError not handled |
| 460 | except ExceptionGroup as e: |
| 461 | exc = e |
| 462 | |
| 463 | self.assertExceptionIsLike( |
| 464 | exc, |
| 465 | ExceptionGroup("eg", [TypeError(1), ValueError(2), OSError(3)])) |
| 466 | |
| 467 | def test_reraise_all_unnamed(self): |
| 468 | try: |
nothing calls this directly
no test coverage detected