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, 5 insertions, 1 deletions
diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py
index 925bb883d6..1f4257b119 100644
--- a/Lib/test/test_ast.py
+++ b/Lib/test/test_ast.py
@@ -1627,7 +1627,11 @@ class ASTValidatorTests(unittest.TestCase):
),
ast.MatchOr(
[pattern_1, pattern_x, ast.MatchSingleton('xxx')]
- )
+ ),
+ ast.MatchAs(name="_"),
+ ast.MatchStar(name="x"),
+ ast.MatchSequence([ast.MatchStar("_")]),
+ ast.MatchMapping([], [], rest="_"),
]
def test_match_validation_pattern(self):