Author: Maciej Fijalkowski <[email protected]>
Branch: even-more-jit-hooks
Changeset: r56010:a1ad0a656b97
Date: 2012-07-10 00:34 +0200
http://bitbucket.org/pypy/pypy/changeset/a1ad0a656b97/
Log: change this error to warning, iit's actually fine for tests
diff --git a/pypy/rpython/annlowlevel.py b/pypy/rpython/annlowlevel.py
--- a/pypy/rpython/annlowlevel.py
+++ b/pypy/rpython/annlowlevel.py
@@ -12,6 +12,7 @@
from pypy.rpython import extregistry
from pypy.objspace.flow.model import Constant
from pypy.translator.simplify import get_functype
+from pypy.rpython.rmodel import warning
class KeyComp(object):
def __init__(self, val):
@@ -484,7 +485,7 @@
Limited to casting a given object to a single type.
"""
if hasattr(object, '_freeze_'):
- raise Exception("Trying to cast a frozen object to pointer")
+ warning("Trying to cast a frozen object to pointer")
if isinstance(PTR, lltype.Ptr):
TO = PTR.TO
else:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit