[Numpy-svn] r3214 - trunk/numpy/lib/tests

numpy-svn at scipy.org numpy-svn at scipy.org
Sun Sep 24 02:08:59 CDT 2006


Author: oliphant
Date: 2006-09-24 02:08:26 -0500 (Sun, 24 Sep 2006)
New Revision: 3214

Modified:
   trunk/numpy/lib/tests/test_ufunclike.py
Log:
Fix doctests for new dtype

Modified: trunk/numpy/lib/tests/test_ufunclike.py
===================================================================
--- trunk/numpy/lib/tests/test_ufunclike.py	2006-09-23 18:35:46 UTC (rev 3213)
+++ trunk/numpy/lib/tests/test_ufunclike.py	2006-09-24 07:08:26 UTC (rev 3214)
@@ -18,26 +18,26 @@
 Test isposinf, isneginf, sign
 >>> a = nx.array([nx.Inf, -nx.Inf, nx.NaN, 0.0, 3.0, -3.0])
 >>> U.isposinf(a)
-array([True, False, False, False, False, False], dtype=bool)
+array([True, False, False, False, False, False], dtype='bool')
 >>> U.isneginf(a)
-array([False, True, False, False, False, False], dtype=bool)
+array([False, True, False, False, False, False], dtype='bool')
 >>> nx.sign(a)
 array([ 1., -1.,  0.,  0.,  1., -1.])
 
 Same thing with an output array:
 >>> y = nx.zeros(a.shape, bool)
 >>> U.isposinf(a, y)
-array([True, False, False, False, False, False], dtype=bool)
+array([True, False, False, False, False, False], dtype='bool')
 >>> y
-array([True, False, False, False, False, False], dtype=bool)
+array([True, False, False, False, False, False], dtype='bool')
 >>> U.isneginf(a, y)
-array([False, True, False, False, False, False], dtype=bool)
+array([False, True, False, False, False, False], dtype='bool')
 >>> y
-array([False, True, False, False, False, False], dtype=bool)
+array([False, True, False, False, False, False], dtype='bool')
 >>> nx.sign(a, y)
-array([True, True, False, False, True, True], dtype=bool)
+array([True, True, False, False, True, True], dtype='bool')
 >>> y
-array([True, True, False, False, True, True], dtype=bool)
+array([True, True, False, False, True, True], dtype='bool')
 
 Now log2:
 >>> a = nx.array([4.5, 2.3, 6.5])



More information about the Numpy-svn mailing list