Commits

Brian Kearns  committed 22a6275

fix this test for running against numpy

  • Participants
  • Parent commits 816b7af

Comments (0)

Files changed (1)

File pypy/module/test_lib_pypy/numpypy/test_numpy.py

                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)