[pypy-commit] pypy jit-singlefloat: Oups, fix test.

arigo noreply at buildbot.pypy.org
Thu Jul 28 23:48:04 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: jit-singlefloat
Changeset: r46071:e131bb0832ae
Date: 2011-07-28 23:46 +0200
http://bitbucket.org/pypy/pypy/changeset/e131bb0832ae/

Log:	Oups, fix test.

diff --git a/pypy/jit/backend/llsupport/test/test_descr.py b/pypy/jit/backend/llsupport/test/test_descr.py
--- a/pypy/jit/backend/llsupport/test/test_descr.py
+++ b/pypy/jit/backend/llsupport/test/test_descr.py
@@ -426,7 +426,7 @@
 
 def test_call_stubs_single_float():
     from pypy.rlib.longlong2float import uint2singlefloat, singlefloat2uint
-    from pypy.rlib.rarithmetic import r_singlefloat, intmask, r_uint
+    from pypy.rlib.rarithmetic import r_singlefloat, intmask
     #
     c0 = GcCache(False)
     ARGS = [lltype.SingleFloat, lltype.SingleFloat, lltype.SingleFloat]
@@ -446,4 +446,4 @@
     c = intmask(singlefloat2uint(r_singlefloat(2.0)))
     res = descr2.call_stub(rffi.cast(lltype.Signed, fnptr),
                            [a, b, c], [], [])
-    assert float(uint2singlefloat(r_uint(res))) == -11.5
+    assert float(uint2singlefloat(rffi.r_uint(res))) == -11.5


More information about the pypy-commit mailing list