(self, exc, T, match_template, rest_template)
| 192 | |
| 193 | class TestExceptStarSplitSemantics(ExceptStarTest): |
| 194 | def doSplitTestNamed(self, exc, T, match_template, rest_template): |
| 195 | initial_sys_exception = sys.exception() |
| 196 | sys_exception = match = rest = None |
| 197 | try: |
| 198 | try: |
| 199 | raise exc |
| 200 | except* T as e: |
| 201 | sys_exception = sys.exception() |
| 202 | match = e |
| 203 | except BaseException as e: |
| 204 | rest = e |
| 205 | |
| 206 | self.assertEqual(sys_exception, match) |
| 207 | self.assertExceptionIsLike(match, match_template) |
| 208 | self.assertExceptionIsLike(rest, rest_template) |
| 209 | self.assertEqual(sys.exception(), initial_sys_exception) |
| 210 | |
| 211 | def doSplitTestUnnamed(self, exc, T, match_template, rest_template): |
| 212 | initial_sys_exception = sys.exception() |
no test coverage detected