[Numpy-svn] r6245 - in branches/fix_float_format: . numpy/core/tests

numpy-svn@scip... numpy-svn@scip...
Mon Dec 29 22:23:33 CST 2008


Author: cdavid
Date: 2008-12-29 22:23:30 -0600 (Mon, 29 Dec 2008)
New Revision: 6245

Modified:
   branches/fix_float_format/
   branches/fix_float_format/numpy/core/tests/test_print.py
Log:
Merged revisions 6244 via svnmerge from 
http://svn.scipy.org/svn/numpy/trunk

........
  r6244 | cdavid | 2008-12-30 13:20:48 +0900 (Tue, 30 Dec 2008) | 1 line
  
  Fix test for print: forgot to make sure the value is a float before comparing it.
........



Property changes on: branches/fix_float_format
___________________________________________________________________
Name: svnmerge-integrated
   - /branches/distutils-revamp:1-2752 /branches/dynamic_cpu_configuration:1-6101 /branches/multicore:1-3687 /branches/numpy-mingw-w64:1-6150 /branches/visualstudio_manifest:1-6077 /trunk:1-6242
   + /branches/distutils-revamp:1-2752 /branches/dynamic_cpu_configuration:1-6101 /branches/multicore:1-3687 /branches/numpy-mingw-w64:1-6150 /branches/visualstudio_manifest:1-6077 /trunk:1-6244

Modified: branches/fix_float_format/numpy/core/tests/test_print.py
===================================================================
--- branches/fix_float_format/numpy/core/tests/test_print.py	2008-12-30 04:20:48 UTC (rev 6244)
+++ branches/fix_float_format/numpy/core/tests/test_print.py	2008-12-30 04:23:30 UTC (rev 6245)
@@ -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