[pypy-commit] pypy default: merge heads

bivab noreply at buildbot.pypy.org
Fri Aug 3 14:43:06 CEST 2012


Author: David Schneider <david.schneider at picle.org>
Branch: 
Changeset: r56563:24b124b98d2d
Date: 2012-08-03 14:42 +0200
http://bitbucket.org/pypy/pypy/changeset/24b124b98d2d/

Log:	merge heads

diff --git a/pypy/jit/metainterp/test/test_ajit.py b/pypy/jit/metainterp/test/test_ajit.py
--- a/pypy/jit/metainterp/test/test_ajit.py
+++ b/pypy/jit/metainterp/test/test_ajit.py
@@ -3797,6 +3797,7 @@
         assert res == 3
 
     def test_float_bytes(self):
+        from pypy.rlib.rfloat import isnan
         def f(n):
             ll = float2longlong(n)
             return longlong2float(ll)
@@ -3804,7 +3805,7 @@
         for x in [2.5, float("nan"), -2.5, float("inf")]:
             # There are tests elsewhere to verify the correctness of this.
             res = self.interp_operations(f, [x])
-            assert res == x or math.isnan(x) and math.isnan(res)
+            assert res == x or isnan(x) and isnan(res)
 
 
 class TestLLtype(BaseLLtypeTests, LLJitMixin):


More information about the pypy-commit mailing list