[Numpy-svn] r3276 - trunk/numpy/core/tests

numpy-svn at scipy.org numpy-svn at scipy.org
Fri Oct 6 20:43:12 CDT 2006


Author: stefan
Date: 2006-10-06 20:42:57 -0500 (Fri, 06 Oct 2006)
New Revision: 3276

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
Add test for ticket #325.


Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2006-10-07 01:42:39 UTC (rev 3275)
+++ trunk/numpy/core/tests/test_regression.py	2006-10-07 01:42:57 UTC (rev 3276)
@@ -487,6 +487,12 @@
         assert_equal(N.array(x,dtype=N.float32,ndmin=2).ndim,2)        
         assert_equal(N.array(x,dtype=N.float64,ndmin=2).ndim,2)
         
+    def check_mem_vectorise(self, level=rlevel):
+        """Ticket #325"""
+        vt = N.vectorize(lambda *args: args)
+        vt(N.zeros((1,2,1)), N.zeros((2,1,1)), N.zeros((1,1,2)))
+        vt(N.zeros((1,2,1)), N.zeros((2,1,1)), N.zeros((1,1,2)), N.zeros((2,2)))                
+        
     def check_mem_axis_minimization(self, level=rlevel):
         """Ticket #327"""
         data = N.arange(5)



More information about the Numpy-svn mailing list