[Numpy-svn] [numpy/numpy] aae5b0: TST: fix string comparison test failures on Window...

GitHub noreply@github....
Wed Mar 7 13:34:02 CST 2012


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: aae5b0a2b7e683792d56bb5c6994dca1e4b9b4b6
      https://github.com/numpy/numpy/commit/aae5b0a2b7e683792d56bb5c6994dca1e4b9b4b6
  Author: Ralf Gommers <ralf.gommers@googlemail.com>
  Date:   2012-03-07 (Wed, 07 Mar 2012)

  Changed paths:
    M numpy/core/tests/test_getlimits.py
  M numpy/lib/tests/test_io.py

  Log Message:
  -----------
  TST: fix string comparison test failures on Windows for Python 2.5.

This is caused by the inconsistent floating point handling of Python itself.
On Windows with 2.5:
>>> "%s" % 1e-6
'1e-006'

With 2.6:
>>> "%s" % 1e-6
'1e-06'

Reviewed as PR-225.





More information about the Numpy-svn mailing list