[pypy-commit] pypy reflex-support: (arigo, cfbolz, wlav) fix test for 64b mac

wlav noreply at buildbot.pypy.org
Thu Jul 14 13:14:02 CEST 2011


Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
Branch: reflex-support
Changeset: r45588:f8c113c6e3c5
Date: 2011-07-14 04:13 -0700
http://bitbucket.org/pypy/pypy/changeset/f8c113c6e3c5/

Log:	(arigo, cfbolz, wlav) fix test for 64b mac

diff --git a/pypy/module/cppyy/test/test_zjit.py b/pypy/module/cppyy/test/test_zjit.py
--- a/pypy/module/cppyy/test/test_zjit.py
+++ b/pypy/module/cppyy/test/test_zjit.py
@@ -1,6 +1,7 @@
 from pypy.jit.metainterp.test.support import LLJitMixin
 from pypy.rlib.objectmodel import specialize
 from pypy.rlib import rarithmetic, jit
+from pypy.rpython.lltypesystem import rffi
 from pypy.interpreter.baseobjspace import InternalSpaceCache, W_Root
 
 from pypy.module.cppyy import interp_cppyy
@@ -57,6 +58,8 @@
             return FakeFloat(obj)
         if isinstance(obj, str):
             return FakeString(obj)
+        if isinstance(obj, rffi.r_int):
+            return FakeInt(int(obj))
         assert 0
 
     def float_w(self, w_obj):


More information about the pypy-commit mailing list