You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Merge branch 'python-3.3-to-3.5' into python-3.0-to-3.2
This commit is contained in:
BIN
test/bytecode_3.0_run/03_comprehension_in_lambda.pyc-notyet
Normal file
BIN
test/bytecode_3.0_run/03_comprehension_in_lambda.pyc-notyet
Normal file
Binary file not shown.
BIN
test/bytecode_3.1_run/03_comprehension_in_lambda.pyc
Normal file
BIN
test/bytecode_3.1_run/03_comprehension_in_lambda.pyc
Normal file
Binary file not shown.
@@ -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.
|
||||
|
||||
|
@@ -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.
|
||||
|
||||
|
@@ -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)
|
||||
|
@@ -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
11
test/test-xpython.sh
Executable 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
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user