[Scipy-svn] r6567 - trunk/scipy/sparse/tests

scipy-svn@scip... scipy-svn@scip...
Sat Jun 26 23:19:59 CDT 2010


Author: stefan
Date: 2010-06-26 23:19:59 -0500 (Sat, 26 Jun 2010)
New Revision: 6567

Modified:
   trunk/scipy/sparse/tests/test_base.py
Log:
ENH: Silence ComplexWarnings during sparse tests.

Modified: trunk/scipy/sparse/tests/test_base.py
===================================================================
--- trunk/scipy/sparse/tests/test_base.py	2010-06-26 18:53:19 UTC (rev 6566)
+++ trunk/scipy/sparse/tests/test_base.py	2010-06-27 04:19:59 UTC (rev 6567)
@@ -18,7 +18,7 @@
 import numpy as np
 from numpy import arange, zeros, array, dot, matrix, asmatrix, asarray, \
                   vstack, ndarray, transpose, diag, kron, inf, conjugate, \
-                  int8
+                  int8, ComplexWarning
 
 import random
 from numpy.testing import *
@@ -32,6 +32,7 @@
 
 
 warnings.simplefilter('ignore', SparseEfficiencyWarning)
+warnings.simplefilter('ignore', ComplexWarning)
 
 
 #TODO check that spmatrix( ... , copy=X ) is respected



More information about the Scipy-svn mailing list