diff --git a/pytest/test_grammar.py b/pytest/test_grammar.py index 169eb195..1e8c52b3 100644 --- a/pytest/test_grammar.py +++ b/pytest/test_grammar.py @@ -46,11 +46,11 @@ def test_grammar(): unused_rhs.add("mkfunc_annotate") unused_rhs.add("dict_comp") unused_rhs.add("classdefdeco1") - if PYTHON_VERSION in (3.5, 3.6, 3.7): + if PYTHON_VERSION >= 3.5: expect_right_recursive.add((('l_stmts', ('lastl_stmt', 'come_froms', 'l_stmts')))) pass - else: + elif PYTHON_VERSION < 3.3: expect_right_recursive.add((('l_stmts', ('lastl_stmt', 'COME_FROM', 'l_stmts')))) pass