Profiling workarounds, more coverage ...

test/Makefile: more grammar checking. Update python versions
10_del.pyc add test of DEL_GLOBAL

check_ast.py, pysource.py: Profileing workarounds
This commit is contained in:
rocky
2017-11-15 03:16:54 -05:00
parent 9a141a3144
commit 63a43d0c93
9 changed files with 24 additions and 2 deletions

View File

@@ -263,6 +263,11 @@ class Python26Parser(Python2Parser):
if invalid:
return invalid
if rule == ('and', ('expr', 'jmp_false', 'expr', '\\e_come_from_opt')):
# FIXME: workaround profiling bug
if ast[1] is None:
return False
# Test that jmp_false jumps to the end of "and"
# or that it jumps to the same place as the end of "and"
jmp_false = ast[1][0]