[Numpy-svn] r5468 - trunk/numpy/core/tests

numpy-svn@scip... numpy-svn@scip...
Sun Jul 20 07:05:48 CDT 2008


Author: ptvirtan
Date: 2008-07-20 07:05:41 -0500 (Sun, 20 Jul 2008)
New Revision: 5468

Modified:
   trunk/numpy/core/tests/test_umath.py
Log:
Fix errors in C99 tests. Skip tests failing on some platforms.

Modified: trunk/numpy/core/tests/test_umath.py
===================================================================
--- trunk/numpy/core/tests/test_umath.py	2008-07-20 08:29:21 UTC (rev 5467)
+++ trunk/numpy/core/tests/test_umath.py	2008-07-20 12:05:41 UTC (rev 5468)
@@ -280,17 +280,16 @@
             ((-0., 0.), (-inf, pi), 'divide'),
             ((+0., 0.), (-inf, 0.), 'divide'),
             ((1., inf), (inf, pi/2), ''),
-            ((1., nan), (nan, nan), ''),
+            ((1., nan), (nan, nan), 'invalid-optional'),
             ((-inf, 1.), (inf, pi), ''),
             ((inf, 1.), (inf, 0.), ''),
             ((-inf, inf), (inf, 3*pi/4), ''),
             ((inf, inf), (inf, pi/4), ''),
             ((inf, nan), (inf, nan), ''),
             ((-inf, nan), (inf, nan), ''),
-            ((nan, 0.), (nan, nan), ''),
-            ((nan, 1.), (nan, nan), ''),
+            ((nan, 1.), (nan, nan), 'invalid-optional'),
             ((nan, inf), (inf, nan), ''),
-            ((+nan, nan), (nan, nan), ''),
+            ((+nan, nan), (nan, nan), 'XXX'), # raises 'invalid' on some platfs
         ]:
             yield self._check, np.log, p, v, e
     
@@ -300,7 +299,7 @@
             ((0., 0.), (0.,0.),  ''),
             ((1., inf), (inf,inf), 'XXX invalid'), # now (inf, nan)
             ((nan, inf), (inf,inf), 'XXX'), # now (nan, nan)
-            ((-inf, 1.), (0.,inf), ''),
+            ((-inf, 1.), (0.,inf), 'XXX'), # (-0., inf) on Mac OSX
             ((inf, 1.), (inf,0.), ''),
             ((-inf,nan), (nan, -inf), 'XXX'), # could also be +inf. raises 'invalid' on Sparc64
             ((inf, nan), (inf, nan),  ''),
@@ -374,7 +373,7 @@
             ((inf, nan), (0, nan), 'XXX'), # now: (nan, nan)
             ((nan, 1.), (nan, nan), 'invalid-optional'),
             ((nan, inf), (+0, pi/2), 'XXX'), # now: (nan, nan)
-            ((nan, nan), (nan, nan), ''),
+            ((nan, nan), (nan, nan), 'XXX'), # raises 'invalid' on some platfs
         ]:
             yield self._check, np.arctanh, p, v, e
 



More information about the Numpy-svn mailing list