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

numpy-svn at scipy.org numpy-svn at scipy.org
Mon Nov 27 00:54:52 CST 2006


Author: stefan
Date: 2006-11-27 00:54:44 -0600 (Mon, 27 Nov 2006)
New Revision: 3462

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
Revert previous change and rather check for both possible outcomes.


Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2006-11-27 06:47:56 UTC (rev 3461)
+++ trunk/numpy/core/tests/test_regression.py	2006-11-27 06:54:44 UTC (rev 3462)
@@ -572,11 +572,14 @@
 
     def check_recarray_fields(self, level=rlevel):
         """Ticket #372"""
-        dt = N.dtype([('f0',"i4"),('f1',"i4")])
+        dt0 = N.dtype([('f0','i4'),('f1','i4')])
+        dt1 = N.dtype([('f0','i8'),('f1','i8')])
         for a in [N.array([(1,2),(3,4)],"i4,i4"),
                   N.rec.array([(1,2),(3,4)],"i4,i4"),
-                  N.rec.fromarrays([(1,2),(3,4)],"i4,i4")]:
-            assert_equal(a.dtype,dt)
+                  N.rec.array([(1,2),(3,4)]),
+                  N.rec.fromarrays([(1,2),(3,4)],"i4,i4"),
+                  N.rec.fromarrays([(1,2),(3,4)])]:
+            assert(a.dtype in [dt0,dt1])
 
     def check_refcount_vectorize(self, level=rlevel):
         """Ticket #378"""



More information about the Numpy-svn mailing list