You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
add-test: Make sure PyPy bytecode is separated
This commit is contained in:
@@ -6,7 +6,10 @@ assert len(sys.argv) >= 2
|
|||||||
version = sys.version[0:3]
|
version = sys.version[0:3]
|
||||||
for path in sys.argv[1:]:
|
for path in sys.argv[1:]:
|
||||||
short = os.path.basename(path)
|
short = os.path.basename(path)
|
||||||
cfile = "bytecode_%s/%s" % (version, short) + 'c'
|
if hasattr(sys, 'pypy_version_info'):
|
||||||
|
cfile = "bytecode_pypy%s/%s" % (version, short) + 'c'
|
||||||
|
else:
|
||||||
|
cfile = "bytecode_%s/%s" % (version, short) + 'c'
|
||||||
print("byte-compiling %s to %s" % (path, cfile))
|
print("byte-compiling %s to %s" % (path, cfile))
|
||||||
py_compile.compile(path, cfile)
|
py_compile.compile(path, cfile)
|
||||||
if isinstance(version, str) or version >= (2, 6, 0):
|
if isinstance(version, str) or version >= (2, 6, 0):
|
||||||
|
BIN
test/bytecode_pypy2.7/05_with.pyc
Normal file
BIN
test/bytecode_pypy2.7/05_with.pyc
Normal file
Binary file not shown.
Reference in New Issue
Block a user