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

numpy-svn@scip... numpy-svn@scip...
Sat Apr 24 20:29:20 CDT 2010


Author: charris
Date: 2010-04-24 20:29:19 -0500 (Sat, 24 Apr 2010)
New Revision: 8355

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
ENH: Apply old patch hanging around in my directory. I don't recall where it
came from, but it seems appropriate.

Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2010-04-22 15:55:48 UTC (rev 8354)
+++ trunk/numpy/core/tests/test_regression.py	2010-04-25 01:29:19 UTC (rev 8355)
@@ -1287,5 +1287,11 @@
         # Check if log1p is behaving on 32 bit intel systems.
         assert_(np.isfinite(np.log1p(np.exp2(-53))))
 
+    def test_fromiter_comparison(self, level=rlevel):
+        a = np.fromiter(range(10), dtype='b')
+        b = np.fromiter(range(10), dtype='B')
+        assert np.alltrue(a == np.array([0,1,2,3,4,5,6,7,8,9]))
+        assert np.alltrue(b == np.array([0,1,2,3,4,5,6,7,8,9]))
+
 if __name__ == "__main__":
     run_module_suite()



More information about the Numpy-svn mailing list