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

numpy-svn@scip... numpy-svn@scip...
Thu Jan 8 13:22:41 CST 2009


Author: cdavid
Date: 2009-01-08 13:22:21 -0600 (Thu, 08 Jan 2009)
New Revision: 6304

Modified:
   trunk/numpy/core/tests/test_print.py
Log:
Revert buggy test fix for locale independecce.

Modified: trunk/numpy/core/tests/test_print.py
===================================================================
--- trunk/numpy/core/tests/test_print.py	2009-01-08 16:30:01 UTC (rev 6303)
+++ trunk/numpy/core/tests/test_print.py	2009-01-08 19:22:21 UTC (rev 6304)
@@ -154,7 +154,7 @@
         else:
             locale.setlocale(locale.LC_NUMERIC, 'FRENCH')
 
-        assert_equal(locale.format("%f",tp(1.2)), locale.format("%f",float(1.2)),
+        assert_equal(str(tp(1.2)), str(float(1.2)),
                      err_msg='Failed locale test for type %s' % tp)
     finally:
         locale.setlocale(locale.LC_NUMERIC, locale=curloc)



More information about the Numpy-svn mailing list