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

numpy-svn@scip... numpy-svn@scip...
Mon Dec 29 22:20:52 CST 2008


Author: cdavid
Date: 2008-12-29 22:20:48 -0600 (Mon, 29 Dec 2008)
New Revision: 6244

Modified:
   trunk/numpy/core/tests/test_print.py
Log:
Fix test for print: forgot to make sure the value is a float before comparing it.

Modified: trunk/numpy/core/tests/test_print.py
===================================================================
--- trunk/numpy/core/tests/test_print.py	2008-12-30 04:04:47 UTC (rev 6243)
+++ trunk/numpy/core/tests/test_print.py	2008-12-30 04:20:48 UTC (rev 6244)
@@ -60,6 +60,7 @@
 # print tests
 def check_float_type_print(tp):
     for x in [0, 1,-1, 1e10, 1e20, float('inf'), float('nan'), float('-inf')] :
+        x = float(x)
         file = StringIO()
         file_tp = StringIO()
         stdout = sys.stdout



More information about the Numpy-svn mailing list