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

numpy-svn at scipy.org numpy-svn at scipy.org
Mon Apr 21 23:50:37 EDT 2008


Author: charris
Date: 2008-04-21 22:50:35 -0500 (Mon, 21 Apr 2008)
New Revision: 5063

Modified:
   trunk/numpy/core/tests/test_ufunc.py
Log:
Uncomment tests for PyUfunc_O_O_method and PyUFunc_OO_O_method.


Modified: trunk/numpy/core/tests/test_ufunc.py
===================================================================
--- trunk/numpy/core/tests/test_ufunc.py	2008-04-22 03:48:21 UTC (rev 5062)
+++ trunk/numpy/core/tests/test_ufunc.py	2008-04-22 03:50:35 UTC (rev 5063)
@@ -52,6 +52,14 @@
         just looked at the signatures registered in the build directory to find
         relevant functions.
 
+        Fixme, currently untested:
+
+            PyUFunc_ff_f_As_dd_d
+            PyUFunc_FF_F_As_DD_D
+            PyUFunc_f_f_As_d_d
+            PyUFunc_F_F_As_D_D
+            PyUFunc_On_Om
+
         """
         fone = np.exp
         ftwo = lambda x,y : x**y
@@ -123,7 +131,7 @@
         x = np.zeros(10, dtype=np.object)[0::2]
         for i in range(len(x)) :
             x[i] = foo()
-        #assert np.all(np.logical_not(x) == True), msg
+        assert np.all(np.logical_not(x) == True), msg
 
         # check binary PyUFunc_OO_0
         msg = "PyUFunc_OO_O"
@@ -134,7 +142,7 @@
         x = np.zeros(10, dtype=np.object)[0::2]
         for i in range(len(x)) :
             x[i] = foo()
-        #assert np.all(np.logical_and(x,x) == 1), msg
+        assert np.all(np.logical_and(x,x) == 1), msg
 
         # check PyUFunc_On_Om
         # fixme -- I don't know how to do this yet




More information about the Numpy-svn mailing list