Merge branch 'python-3.3-to-3.5' into python-3.0-to-3.2

This commit is contained in:
rocky
2024-02-04 12:39:44 -05:00
55 changed files with 1316 additions and 485 deletions

Binary file not shown.

View File

@@ -1,6 +1,6 @@
"""
test_prettyprint.py -- source test pattern for tesing the prettyprint
funcionality of decompyle
functionality of decompyle
This source is part of the decompyle test suite.

View File

@@ -1,5 +1,5 @@
# From 2.7 test_normalize.py
# Bug has to to with finding the end of the tryelse block. I think thrown
# Bug has to do with finding the end of the tryelse block. I think thrown
# off by the "continue". In instructions the COME_FROM for END_FINALLY
# was at the wrong offset because some sort of "rtarget" was adjust.

View File

@@ -5,7 +5,7 @@ def bug(self, j, a, b):
self.parse_comment(a, b, report=3)
# From 3.6 fnmatch.py
# Bug was precidence parenthesis around decorator
# Bug was precedence parenthesis around decorator
import functools
@functools.lru_cache(maxsize=256, typed=True)

View File

@@ -1,6 +1,6 @@
# 2.5.6 decimal.py
# Bug on 2.5 and 2.6 by incorrectly changing opcode to
# RETURN_VALUE to psuedo op: RETURN_END_IF
# RETURN_VALUE to pseudo op: RETURN_END_IF
def _formatparam(param, value=None, quote=True):
if value is not None and len(value) > 0:
if isinstance(value, tuple):

11
test/test-xpython.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
# Checks xpython passes all runnable bytecode here
for dir in bytecode_*_run; do
for file in ${dir}/*.pyc; do
echo $file
if ! xpython $file; then
break
fi
done
done

View File

@@ -216,7 +216,7 @@ def do_tests(src_dir, obj_patterns, target_dir, opts):
print("Output directory: ", target_dir)
try:
_, _, failed_files, failed_verify = main(
src_dir, target_dir, files, [], do_verify=opts["do_verify"]
src_dir, target_dir, files, []
)
if failed_files != 0:
sys.exit(2)