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

numpy-svn@scip... numpy-svn@scip...
Fri Apr 11 01:03:16 CDT 2008


Author: charris
Date: 2008-04-11 01:03:14 -0500 (Fri, 11 Apr 2008)
New Revision: 5018

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
More object casting debugging.


Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2008-04-11 05:31:21 UTC (rev 5017)
+++ trunk/numpy/core/tests/test_regression.py	2008-04-11 06:03:14 UTC (rev 5018)
@@ -750,14 +750,13 @@
 
     def check_object_casting_debug(self, level=rlevel):
         def rs():
-            x = np.ones([484,286], dtype=np.float32)
-            y = np.zeros([484,286], dtype=np.float32)
-            x |= y
+            x = 1.0 | 2.0
+        rs()
         self.failUnlessRaises(TypeError,rs)
 
     def check_object_casting(self, level=rlevel):
         def rs():
-            x = np.ones([484,286])
+            x = 1.0 | 2.0
             y = np.zeros([484,286])
             x |= y
         self.failUnlessRaises(TypeError,rs)



More information about the Numpy-svn mailing list