[Scipy-svn] r4990 - trunk/scipy/signal/tests

scipy-svn@scip... scipy-svn@scip...
Tue Nov 4 02:33:55 CST 2008


Author: cdavid
Date: 2008-11-04 02:33:47 -0600 (Tue, 04 Nov 2008)
New Revision: 4990

Modified:
   trunk/scipy/signal/tests/test_signaltools.py
Log:
Re-enable tests which used to segfault: new lfilter should handle them just fine.

Modified: trunk/scipy/signal/tests/test_signaltools.py
===================================================================
--- trunk/scipy/signal/tests/test_signaltools.py	2008-11-04 08:33:27 UTC (rev 4989)
+++ trunk/scipy/signal/tests/test_signaltools.py	2008-11-04 08:33:47 UTC (rev 4990)
@@ -168,8 +168,8 @@
         assert_array_almost_equal(zf, zf_r)
 
     # Disabled because it crashes lfilter for now
-    @dec.skipif(True, "Skipping lfilter test with initial condition along "\
-                      "axis 0: it segfaults ATM")
+    #@dec.skipif(True, "Skipping lfilter test with initial condition along "\
+    #                  "axis 0: it segfaults ATM")
     def test_rank2_init_cond_a0(self):
         # Test initial condition handling along axis 0
         shape = (4, 3)
@@ -179,13 +179,13 @@
         a = np.array([0.5, 0.5])
 
         y_r2_a0_0 = np.array([[1, 3, 5], [5, 3, 1], [1, 3, 5], [5 ,3 ,1]])
-        zf_r = np.array([-23, -23, -23])
+        zf_r = np.array([[-23, -23, -23]])
         y, zf = lfilter(b, a, x, axis = 0, zi = np.ones((1, 3)))
         assert_array_almost_equal(y_r2_a0_0, y)
         assert_array_almost_equal(zf, zf_r)
 
     # Disabled because it crashes lfilter for now
-    @dec.skipif(True, "Skipping rank > 2 test for lfilter because its segfaults ATM")
+    #@dec.skipif(True, "Skipping rank > 2 test for lfilter because its segfaults ATM")
     def test_rank3(self):
         shape = (4, 3, 2)
         x = np.linspace(0, np.prod(shape) - 1, np.prod(shape)).reshape(shape)



More information about the Scipy-svn mailing list