Some PyPY 3.7 support

* Handle CALL_METHOD_KW
* adjust PyPY 3.7 assert stmts
* misc administrivia
This commit is contained in:
rocky
2021-11-21 14:04:34 -05:00
parent d752f63d12
commit 2ed211e0d4
9 changed files with 93 additions and 16 deletions

View File

@@ -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

Binary file not shown.

View 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"]

View File

@@ -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)

View File

@@ -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)
# -----