From 849691e087ac344680a577ce6fbc4e7100c13a75 Mon Sep 17 00:00:00 2001 From: rocky Date: Thu, 14 Dec 2017 16:36:45 -0500 Subject: [PATCH] Make grammar check work again.. Add the known unused rules in LHS to include those things we recently added custom rules for --- pytest/test_grammar.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pytest/test_grammar.py b/pytest/test_grammar.py index 487deac7..6e9f6ca8 100644 --- a/pytest/test_grammar.py +++ b/pytest/test_grammar.py @@ -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',])