You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 08:49:51 +08:00
Add some disassemble tests using pytest.
This commit is contained in:
@@ -38,4 +38,4 @@ clean-unverified:
|
||||
|
||||
#: Clean temporary compile/decompile/verify direcotries in /tmp
|
||||
clean-py-dis:
|
||||
rm -fvr /tmp/py-dis-* || true
|
||||
rm -fr /tmp/py-dis-* || true
|
||||
|
@@ -138,7 +138,7 @@ def do_tests(src_dir, obj_patterns, target_dir, opts):
|
||||
|
||||
if opts['start_with']:
|
||||
try:
|
||||
start_with = files.index(start_with)
|
||||
start_with = files.index(opts['start_with'])
|
||||
files = files[start_with:]
|
||||
print('>>> starting with file', files[0])
|
||||
except ValueError:
|
||||
@@ -203,7 +203,7 @@ if __name__ == '__main__':
|
||||
print("Can't find directory %s. Skipping" % src_dir,
|
||||
file=sys.stderr)
|
||||
continue
|
||||
if last_compile_version and last_compile_version != compile_version:
|
||||
if last_compile_version and last_compile_version != compiled_version:
|
||||
print("Warning: mixed python version decompylation")
|
||||
else:
|
||||
last_compile_version = compiled_version
|
||||
|
Reference in New Issue
Block a user