[Scipy-svn] r4943 - trunk/scipy/sparse/linalg/eigen/arpack/tests

scipy-svn@scip... scipy-svn@scip...
Sun Nov 2 21:54:29 CST 2008


Author: chris.burns
Date: 2008-11-02 21:54:26 -0600 (Sun, 02 Nov 2008)
New Revision: 4943

Modified:
   trunk/scipy/sparse/linalg/eigen/arpack/tests/test_arpack.py
Log:
Skip complex arpack tests that cause Bus Error on OSX.

Modified: trunk/scipy/sparse/linalg/eigen/arpack/tests/test_arpack.py
===================================================================
--- trunk/scipy/sparse/linalg/eigen/arpack/tests/test_arpack.py	2008-11-03 03:12:39 UTC (rev 4942)
+++ trunk/scipy/sparse/linalg/eigen/arpack/tests/test_arpack.py	2008-11-03 03:54:26 UTC (rev 4943)
@@ -10,6 +10,11 @@
 from numpy import array, finfo, argsort, dot, round, conj, random
 from scipy.sparse.linalg.eigen.arpack import eigen_symmetric, eigen
 
+# Include platform only for skipping test of complex arpack routines
+# in OSX Accelerate Framework.  Once these tests are fixed, this
+# import should be removed.
+from sys import platform
+darwin_skip_msg='Complex number bug with Accelerate Framework, see ticket #725.'
 
 def assert_almost_equal_cc(actual,desired,decimal=7,err_msg='',verbose=True):
     # almost equal or complex conjugates almost equal
@@ -147,7 +152,7 @@
                                       eval[i]*evec[:,i],
                                       decimal=_ndigits[typ])
 
-
+    @dec.skipif(platform=='darwin', darwin_skip_msg)
     def test_complex_symmetric_modes(self):
         k=2
         for typ in 'FD':
@@ -259,6 +264,7 @@
                                       decimal=_ndigits[typ])
 
 
+    @dec.skipif(platform=='darwin', darwin_skip_msg)
     def test_complex_nonsymmetric_modes(self):
         k=2
         for typ in 'FD':



More information about the Scipy-svn mailing list