ruff/crates/ruff_python_parser/tests
Dylan a3bb0cd5ec
Raise syntax error for mixing except and except* (#14895)
This PR adds a syntax error if the parser encounters a `TryStmt` that
has except clauses both with and without a star.

The displayed error points to each except clause that contradicts the
original except clause kind. So, for example,

```python
try:
    ....
except:     #<-- we assume this is the desired except kind
    ....
except*:    #<---  error will point here
    ....
except*:    #<--- and here
    ....
```

Closes #14860
2024-12-10 17:50:55 -06:00
..
snapshots Raise syntax error for mixing except and except* (#14895) 2024-12-10 17:50:55 -06:00
fixtures.rs Update parser tests to validate token ranges (#12019) 2024-06-25 08:14:28 +00:00
generate_inline_tests.rs Replace LALRPOP parser with hand-written parser (#10036) 2024-04-18 17:57:39 +05:30