summaryrefslogtreecommitdiff
path: root/Lib/test/test_ast.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_ast.py')
-rw-r--r--Lib/test/test_ast.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py
index fdd21aca06..34808ed856 100644
--- a/Lib/test/test_ast.py
+++ b/Lib/test/test_ast.py
@@ -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")