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

numpy-svn at scipy.org numpy-svn at scipy.org
Thu Sep 7 18:28:04 EDT 2006


Author: stefan
Date: 2006-09-07 17:27:48 -0500 (Thu, 07 Sep 2006)
New Revision: 3132

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


Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2006-09-07 18:12:53 UTC (rev 3131)
+++ trunk/numpy/core/tests/test_regression.py	2006-09-07 22:27:48 UTC (rev 3132)
@@ -359,6 +359,11 @@
         assert_equal(N.arange(4,dtype='<c8').imag.max(),0.0)
         assert_equal(N.arange(4,dtype='>c8').real.max(),3.0)
         assert_equal(N.arange(4,dtype='<c8').real.max(),3.0)
+        
+    def check_multiple_assign(self, level=rlevel):
+        """Ticket #273"""
+        a = N.zeros((3,1),int)
+        a[[1,2]] = 1        
 
 if __name__ == "__main__":
     NumpyTest().run()




More information about the Numpy-svn mailing list