mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
gh-104482: Fix error handling bugs in ast.c (#104483)
This commit is contained in:
parent
26baa747c2
commit
8a3702f0c7
4 changed files with 45 additions and 19 deletions
|
|
@ -2035,6 +2035,12 @@ class ASTValidatorTests(unittest.TestCase):
|
|||
kwd_attrs=[],
|
||||
kwd_patterns=[ast.MatchStar()]
|
||||
),
|
||||
ast.MatchClass(
|
||||
constant_true, # invalid name
|
||||
patterns=[],
|
||||
kwd_attrs=['True'],
|
||||
kwd_patterns=[pattern_1]
|
||||
),
|
||||
ast.MatchSequence(
|
||||
[
|
||||
ast.MatchStar("True")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue