Debian Codegraph @

pypy/module/_ast/test/apptest_ast.py

raw symbols SCIP
1 import ast
2
3 def test_match_args():
4 assert ast.If.__match_args__ == ('test', 'body', 'orelse')
5
6 def test_match_args_Load():
7 assert ast.Load.__match_args__ == ()
8
9 def test_patma_ast():
10 def f(x):
11 match x:
12 case ast.Constant(a, b): return a, b
13 assert f(ast.Constant(5)) == (5, None)
14