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

numpy-svn at scipy.org numpy-svn at scipy.org
Fri Oct 6 20:09:49 CDT 2006


Author: stefan
Date: 2006-10-06 20:09:36 -0500 (Fri, 06 Oct 2006)
New Revision: 3271

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


Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2006-10-07 01:04:00 UTC (rev 3270)
+++ trunk/numpy/core/tests/test_regression.py	2006-10-07 01:09:36 UTC (rev 3271)
@@ -456,6 +456,11 @@
         lst = ['abc','cde','fgh']
         N.lexsort((lst,))
         
+    def check_fancy_index(self, level=rlevel):
+        """Ticket #302"""
+        x = N.array([1,2])[N.array([0])]
+        assert_equal(x.shape,(1,))
+        
     def check_recarray_copy(self, level=rlevel):
         """Ticket #312"""
         dt = [('x',N.int16),('y',N.float64)]



More information about the Numpy-svn mailing list