You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
Some PyPY 3.7 support
* Handle CALL_METHOD_KW * adjust PyPY 3.7 assert stmts * misc administrivia
This commit is contained in:
@@ -72,6 +72,9 @@ check-3.7: check-bytecode
|
||||
$(PYTHON) test_pythonlib.py --bytecode-3.7-run --verify-run
|
||||
$(PYTHON) test_pythonlib.py --bytecode-3.7 --syntax-verify $(COMPILE)
|
||||
|
||||
check-pypy37: check-bytecode
|
||||
$(PYTHON) test_pythonlib.py --bytecode-pypy37 --verify-run
|
||||
|
||||
#: Run working tests from Python 3.8
|
||||
check-3.8: check-bytecode
|
||||
$(PYTHON) test_pythonlib.py --bytecode-3.8-run --verify-run
|
||||
@@ -353,10 +356,14 @@ check-bytecode-pypy3.6: 7.1
|
||||
|
||||
#: PyPy 5.0.x with Python 3.6.9
|
||||
check-bytecode-pypy3.6: 7.2 7.3
|
||||
7.3 7.2:
|
||||
|
||||
7.2:
|
||||
$(PYTHON) test_pythonlib.py --bytecode-pypy3.6-run --verify-run
|
||||
$(PYTHON) test_pythonlib.py --bytecode-pypy3.6 --verify
|
||||
|
||||
7.3:
|
||||
$(PYTHON) test_pythonlib.py --bytecode-pypy3.7 --verify-run
|
||||
|
||||
|
||||
|
||||
clean: clean-py-dis clean-dis clean-unverified
|
||||
|
BIN
test/bytecode_pypy3.7/01_callback.pyc
Normal file
BIN
test/bytecode_pypy3.7/01_callback.pyc
Normal file
Binary file not shown.
10
test/simple_source/bug_pypy37/01_callback.py
Normal file
10
test/simple_source/bug_pypy37/01_callback.py
Normal file
@@ -0,0 +1,10 @@
|
||||
"""This program is self-checking!"""
|
||||
|
||||
|
||||
def lcase(s):
|
||||
return s.lower()
|
||||
|
||||
|
||||
l = ["xyz", "ABC"]
|
||||
l.sort(key=lcase)
|
||||
assert l == ["ABC", "xyz"]
|
@@ -48,6 +48,7 @@ TEST_VERSIONS = (
|
||||
"pypy3.6-7.1.0",
|
||||
"pypy3.6-7.1.1",
|
||||
"pypy3.6-7.2.0",
|
||||
"pypy3.8-7.3.7",
|
||||
"native",
|
||||
) + tuple(python_versions)
|
||||
|
||||
|
@@ -116,6 +116,12 @@ for vers in (
|
||||
pythonlib = os.path.join(pythonlib, "__pycache__")
|
||||
test_options[key] = (os.path.join(lib_prefix, pythonlib), PYOC, pythonlib, vers)
|
||||
|
||||
vers = 3.7
|
||||
bytecode = "bytecode_pypy%s_run" % vers
|
||||
key = "bytecode-pypy37"
|
||||
test_options[key] = (bytecode, PYC, bytecode, vers)
|
||||
|
||||
|
||||
# -----
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user