[pypy-commit] pypy default: Python 2.5 compat
arigo
noreply at buildbot.pypy.org
Fri Aug 3 12:25:30 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r56551:50f7478f988e
Date: 2012-08-03 12:24 +0200
http://bitbucket.org/pypy/pypy/changeset/50f7478f988e/
Log: Python 2.5 compat
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