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

numpy-svn@scip... numpy-svn@scip...
Mon Sep 29 12:23:54 CDT 2008


Author: ptvirtan
Date: 2008-09-29 12:23:43 -0500 (Mon, 29 Sep 2008)
New Revision: 5878

Modified:
   trunk/numpy/core/tests/test_umath.py
Log:
Umath tests: remove signed zero check on branch cut for log* as it fails on some platforms.

Modified: trunk/numpy/core/tests/test_umath.py
===================================================================
--- trunk/numpy/core/tests/test_umath.py	2008-09-29 16:20:47 UTC (rev 5877)
+++ trunk/numpy/core/tests/test_umath.py	2008-09-29 17:23:43 UTC (rev 5878)
@@ -205,9 +205,9 @@
 
     def test_branch_cuts(self):
         # check branch cuts and continuity on them
-        yield _check_branch_cut, np.log,   -0.5, 1j, 1, -1, True
-        yield _check_branch_cut, np.log10, -0.5, 1j, 1, -1, True
-        yield _check_branch_cut, np.log1p, -1.5, 1j, 1, -1, True
+        yield _check_branch_cut, np.log,   -0.5, 1j, 1, -1
+        yield _check_branch_cut, np.log10, -0.5, 1j, 1, -1
+        yield _check_branch_cut, np.log1p, -1.5, 1j, 1, -1
         yield _check_branch_cut, np.sqrt,  -0.5, 1j, 1, -1
 
         yield _check_branch_cut, np.arcsin, [ -2, 2],   [1j, -1j], 1, -1
@@ -229,6 +229,11 @@
 
     @dec.knownfailureif(True, "These branch cuts are known to fail")
     def test_branch_cuts_failing(self):
+        # XXX: signed zero not OK with ICC on 64-bit platform for log, see
+        # http://permalink.gmane.org/gmane.comp.python.numeric.general/25335
+        yield _check_branch_cut, np.log,   -0.5, 1j, 1, -1, True
+        yield _check_branch_cut, np.log10, -0.5, 1j, 1, -1, True
+        yield _check_branch_cut, np.log1p, -1.5, 1j, 1, -1, True
         # XXX: signed zeros are not OK for sqrt or for the arc* functions
         yield _check_branch_cut, np.sqrt,  -0.5, 1j, 1, -1, True
         yield _check_branch_cut, np.arcsin, [ -2, 2],   [1j, -1j], 1, -1, True



More information about the Numpy-svn mailing list