Make grammar check work again..

Add the known unused rules in LHS to include those things
we recently added custom rules for
This commit is contained in:
rocky 2017-12-14 16:36:45 -05:00
parent 6a1e8295b1
commit 849691e087

View File

@ -16,7 +16,10 @@ def test_grammar():
p = get_python_parser(PYTHON_VERSION, is_pypy=IS_PYPY)
(lhs, rhs, tokens,
right_recursive, dup_rhs) = p.check_sets()
expect_lhs = set(['expr1024', 'pos_arg'])
# We have custom rules that create the below
expect_lhs = set(['expr1024', 'pos_arg', 'get_iter', 'attribute'])
unused_rhs = set(['list', 'mkfunc',
'mklambda',
'unpack',])