Author: Brian Kearns <bdkea...@gmail.com>
Branch: 
Changeset: r61762:22a6275e2e6e
Date: 2013-02-25 09:11 -0500
http://bitbucket.org/pypy/pypy/changeset/22a6275e2e6e/

Log:    fix this test for running against numpy

diff --git a/pypy/module/test_lib_pypy/numpypy/test_numpy.py 
b/pypy/module/test_lib_pypy/numpypy/test_numpy.py
--- a/pypy/module/test_lib_pypy/numpypy/test_numpy.py
+++ b/pypy/module/test_lib_pypy/numpypy/test_numpy.py
@@ -55,7 +55,8 @@
                numpypy.core.multiarray.set_string_function
 
     def test_constants(self):
+        import math
         import numpypy
         assert numpypy.PZERO == numpypy.NZERO == 0.0
-        assert numpypy.inf is float('inf')
-        assert numpypy.nan is float('nan')
+        assert math.isinf(numpypy.inf)
+        assert math.isnan(numpypy.nan)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to