[pypy-commit] pypy py3.6-wordcode: at least give a clear error message

cfbolz pypy.commits at gmail.com
Tue May 29 07:29:20 EDT 2018


Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
Branch: py3.6-wordcode
Changeset: r94708:95399d92b028
Date: 2018-05-26 10:08 +0200
http://bitbucket.org/pypy/pypy/changeset/95399d92b028/

Log:	at least give a clear error message

diff --git a/pypy/interpreter/pycode.py b/pypy/interpreter/pycode.py
--- a/pypy/interpreter/pycode.py
+++ b/pypy/interpreter/pycode.py
@@ -216,7 +216,7 @@
         """
         Hack to initialize the code object from a real (CPython) one.
         """
-        XXX
+        raise TypeError("assert reinterpretation for applevel tests is broken on PyPy3!")
         assert isinstance(code, types.CodeType)
         newconsts_w = [None] * len(code.co_consts)
         num = 0


More information about the pypy-commit mailing list