[Scipy-svn] r7078 - branches/0.9.x/scipy/interpolate/tests

scipy-svn at scipy.org scipy-svn at scipy.org
Sun Jan 23 03:09:53 EST 2011


Author: rgommers
Date: 2011-01-23 02:09:52 -0600 (Sun, 23 Jan 2011)
New Revision: 7078

Modified:
   branches/0.9.x/scipy/interpolate/tests/test_fitpack.py
Log:
TST: filter interpolate test warnings in 0.9.x branch.

Modified: branches/0.9.x/scipy/interpolate/tests/test_fitpack.py
===================================================================
--- branches/0.9.x/scipy/interpolate/tests/test_fitpack.py	2011-01-23 08:09:36 UTC (rev 7077)
+++ branches/0.9.x/scipy/interpolate/tests/test_fitpack.py	2011-01-23 08:09:52 UTC (rev 7078)
@@ -10,8 +10,9 @@
 Run tests if interpolate is not installed:
   python tests/test_fitpack.py [<level>]
 """
-#import libwadpy
 
+import warnings
+
 from numpy.testing import assert_equal, assert_almost_equal, assert_array_equal, \
         assert_array_almost_equal, TestCase, run_module_suite
 from numpy import array, diff, shape
@@ -195,5 +196,13 @@
 
         assert_almost_equal(zi, zi2)
 
+
+warnings.filterwarnings("ignore",
+                        message="\\nThe coefficients of the spline returned",
+                        module="scipy.interpolate")
+warnings.filterwarnings("ignore",
+                        message="\\nThe required storage space exceeds",
+                        module="scipy.interpolate")
+
 if __name__ == "__main__":
     run_module_suite()




More information about the Scipy-svn mailing list