[Numpy-discussion] change made to test_print.py

Christopher Hanley chanley@stsci....
Thu Jan 8 10:37:51 CST 2009


Hi,

I've committed the following change to test_print.py to fix one of the 
tests.

Index: test_print.py
===================================================================
--- test_print.py       (revision 6302)
+++ test_print.py       (working copy)
@@ -154,7 +154,7 @@
          else:
              locale.setlocale(locale.LC_NUMERIC, 'FRENCH')

-        assert_equal(str(tp(1.2)), str(float(1.2)),
+        assert_equal(locale.format("%f",tp(1.2)), 
locale.format("%f",float(1.2)),
                       err_msg='Failed locale test for type %s' % tp)
      finally:
          locale.setlocale(locale.LC_NUMERIC, locale=curloc)


Chris

-- 
Christopher Hanley
Senior Systems Software Engineer
Space Telescope Science Institute
3700 San Martin Drive
Baltimore MD, 21218
(410) 338-4338


More information about the Numpy-discussion mailing list