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

numpy-svn@scip... numpy-svn@scip...
Fri Apr 11 00:31:26 CDT 2008


Author: charris
Date: 2008-04-11 00:31:21 -0500 (Fri, 11 Apr 2008)
New Revision: 5017

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
Debugging test for check_object_casting.


Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2008-04-11 04:20:11 UTC (rev 5016)
+++ trunk/numpy/core/tests/test_regression.py	2008-04-11 05:31:21 UTC (rev 5017)
@@ -748,6 +748,13 @@
         y2 = y[::-1]
         assert_equal(np.dot(x,z),np.dot(x,y2))
 
+    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
+        self.failUnlessRaises(TypeError,rs)
+
     def check_object_casting(self, level=rlevel):
         def rs():
             x = np.ones([484,286])



More information about the Numpy-svn mailing list