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

numpy-svn at scipy.org numpy-svn at scipy.org
Sat Sep 16 17:34:40 CDT 2006


Author: oliphant
Date: 2006-09-16 17:34:36 -0500 (Sat, 16 Sep 2006)
New Revision: 3173

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
Add test for recent fix.

Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2006-09-16 22:27:38 UTC (rev 3172)
+++ trunk/numpy/core/tests/test_regression.py	2006-09-16 22:34:36 UTC (rev 3173)
@@ -400,6 +400,11 @@
         
     def check_empty_array_type(self, level=rlevel):
         assert_equal(N.array([]).dtype, N.zeros(0).dtype)
+
+    def check_void_coercion(self, level=rlevel):
+        dt = N.dtype([('a','f4'),('b','i4')])
+        x = N.zeros((1,),dt)
+        assert(N.r_[x,x].dtype == dt)
         
 if __name__ == "__main__":
     NumpyTest().run()



More information about the Numpy-svn mailing list