[Scipy-svn] r6506 - branches/0.8.x/scipy/linalg/tests

scipy-svn@scip... scipy-svn@scip...
Wed Jun 16 05:59:36 CDT 2010


Author: rgommers
Date: 2010-06-16 05:59:36 -0500 (Wed, 16 Jun 2010)
New Revision: 6506

Modified:
   branches/0.8.x/scipy/linalg/tests/test_decomp.py
Log:
TST: mark linalg_misaligned test as knownfailure in 0.8.x branch.

Modified: branches/0.8.x/scipy/linalg/tests/test_decomp.py
===================================================================
--- branches/0.8.x/scipy/linalg/tests/test_decomp.py	2010-06-16 10:59:18 UTC (rev 6505)
+++ branches/0.8.x/scipy/linalg/tests/test_decomp.py	2010-06-16 10:59:36 UTC (rev 6506)
@@ -16,7 +16,7 @@
 
 import numpy as np
 from numpy.testing import TestCase, assert_equal, assert_array_almost_equal, \
-        assert_array_equal, assert_raises, run_module_suite
+        assert_array_equal, assert_raises, run_module_suite, dec
 
 from scipy.linalg import eig, eigvals, lu, svd, svdvals, cholesky, qr, \
      schur, rsf2csf, lu_solve, lu_factor, solve, diagsvd, hessenberg, rq, \
@@ -1030,8 +1030,8 @@
 
     eig(z, overwrite_a=True)
     eig(z.T, overwrite_a=True)
-     
 
+
 def test_aligned_mem():
     """Check linalg works with non-aligned memory"""
     # Allocate 804 bytes of memory (allocated on boundary)
@@ -1041,7 +1041,7 @@
     z = np.frombuffer(a.data, offset=4, count=100, dtype=float)
     z.shape = 10, 10
 
-    eig(z, overwrite_a=True) 
+    eig(z, overwrite_a=True)
     eig(z.T, overwrite_a=True)
 
 def test_aligned_mem_complex():
@@ -1074,6 +1074,7 @@
                 func(*a,**kwargs)
 
 
+@dec.knownfailureif(True, "Ticket #1152, triggers a segfault in rare cases.")
 def test_lapack_misaligned():
     M = np.eye(10,dtype=float)
     R = np.arange(100)
@@ -1089,8 +1090,8 @@
             (eigvals,(S,),dict(overwrite_a=True)), # no crash
             (lu,(S,),dict(overwrite_a=True)), # no crash
             (lu_factor,(S,),dict(overwrite_a=True)), # no crash
-            (lu_solve,((LU,piv),b),dict(overwrite_b=True)), 
-            (solve,(S,b),dict(overwrite_a=True,overwrite_b=True)), 
+            (lu_solve,((LU,piv),b),dict(overwrite_b=True)),
+            (solve,(S,b),dict(overwrite_a=True,overwrite_b=True)),
             (svd,(M,),dict(overwrite_a=True)), # no crash
             (svd,(R,),dict(overwrite_a=True)), # no crash
             (svd,(S,),dict(overwrite_a=True)), # crash



More information about the Scipy-svn mailing list