(self)
| 3500 | |
| 3501 | @unittest.expectedFailure # TODO: RUSTPYTHON |
| 3502 | def test_unreachable_code(self): |
| 3503 | def f(command): # 0 |
| 3504 | match command: # 1 |
| 3505 | case 1: # 2 |
| 3506 | if False: # 3 |
| 3507 | return 1 # 4 |
| 3508 | case _: # 5 |
| 3509 | if False: # 6 |
| 3510 | return 0 # 7 |
| 3511 | |
| 3512 | self.assertListEqual(self._trace(f, 1), [1, 2, 3]) |
| 3513 | self.assertListEqual(self._trace(f, 0), [1, 2, 5, 6]) |
| 3514 | |
| 3515 | def test_parser_deeply_nested_patterns(self): |
| 3516 | # Deeply nested patterns can cause exponential backtracking when parsing. |
nothing calls this directly
no test coverage detected