From f331deb864c216e95f22af0afc015eeb410f2dc1 Mon Sep 17 00:00:00 2001 From: rocky Date: Fri, 22 Jun 2018 21:27:46 -0400 Subject: [PATCH] 2nd attempt to get check_grammar working on 3.x --- pytest/test_grammar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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