Pypy 3.6 tolerance

This commit is contained in:
rocky
2019-10-30 11:41:22 -04:00
parent 86c1d12e69
commit eed4c1025b
2 changed files with 9 additions and 1 deletions

View File

@@ -100,7 +100,7 @@ check-bytecode-3:
--bytecode-3.1 --bytecode-3.2 --bytecode-3.3 \
--bytecode-3.4 --bytecode-3.5 --bytecode-3.6 \
--bytecode-3.7 \
--bytecode-pypy3.2 # --bytecode-3.8 --bytecode-pypy3.6 -- work out bugs in 3.6 and 3.8
--bytecode-pypy3.2 --bytecode-pypy3.6 # --bytecode-3.8 -- work out bugs in 3.8
#: Check deparsing on selected bytecode 3.x
check-bytecode-3-short:

View File

@@ -1160,6 +1160,14 @@ class Python3Parser(PythonParser):
opname,
)
self.add_unique_rule(rule, opname, token.attr, customize)
if not PYTHON3 and self.is_pypy:
rule = "mkfunc ::= %s%s%s%s" % (
"expr " * stack_count,
"load_closure " * closure,
"LOAD_CODE LOAD_CONST ",
opname,
)
self.add_unique_rule(rule, opname, token.attr, customize)
if has_get_iter_call_function1:
rule_pat = (