[Numpy-svn] [numpy/numpy] de7c65: BUG:change formatting of assert_array_almost_equal

GitHub noreply at github.com
Wed Mar 26 19:53:24 EDT 2014


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: de7c651d531c227d04195b5da21313c57b702b08
      https://github.com/numpy/numpy/commit/de7c651d531c227d04195b5da21313c57b702b08
  Author: Yoshiki Vázquez Baeza <yoshiki.vazquezbaeza at colorado.edu>
  Date:   2014-03-24 (Mon, 24 Mar 2014)

  Changed paths:
    M numpy/testing/utils.py

  Log Message:
  -----------
  BUG:change formatting of assert_array_almost_equal

assert_array_almost_equal now prints the number of digits that were
being compared in the test instead of always printing 8 (the default
for array_repr). This would lead to uninformattive error messages.

Fixes #2367


  Commit: 4112bf1a19f614fc426b82ff6b3ae86d8b25f92b
      https://github.com/numpy/numpy/commit/4112bf1a19f614fc426b82ff6b3ae86d8b25f92b
  Author: Yoshiki Vázquez Baeza <yoshiki.vazquezbaeza at colorado.edu>
  Date:   2014-03-24 (Mon, 24 Mar 2014)

  Changed paths:
    M numpy/testing/tests/test_utils.py

  Log Message:
  -----------
  TST: Add tests for build_err_msg


  Commit: 2e58804fe546bf6d476d09ba186c36a69bc577c4
      https://github.com/numpy/numpy/commit/2e58804fe546bf6d476d09ba186c36a69bc577c4
  Author: Yoshiki Vázquez Baeza <yoshiki.vazquezbaeza at colorado.edu>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M numpy/testing/utils.py

  Log Message:
  -----------
  ENH: Add check for ndarray/scalar in build_err_msg

This check is needed now that build_err_msg takes a precision argument,
which is only relevant if the things being compared are ndarrays.


  Commit: c94e13542ad6553633da59fb68fe295df555e2c3
      https://github.com/numpy/numpy/commit/c94e13542ad6553633da59fb68fe295df555e2c3
  Author: Yoshiki Vázquez Baeza <yoshiki.vazquezbaeza at colorado.edu>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M numpy/testing/tests/test_utils.py

  Log Message:
  -----------
  TST: Add exception message formatting tests

assert_approx_equal & assert_almost_equal make internal use of
build_err_msg so a few tests have been added to check that the errors
are formatted correctly.


  Commit: b07880ba9c0aef44ad3dcbf2b52c094c58adde60
      https://github.com/numpy/numpy/commit/b07880ba9c0aef44ad3dcbf2b52c094c58adde60
  Author: Yoshiki Vázquez Baeza <yoshiki.vazquezbaeza at colorado.edu>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M numpy/testing/tests/test_utils.py

  Log Message:
  -----------
  BUG: Fix non-compatible py3 property


  Commit: b1dfdea4b7e1a1e52f933dfdc075030f4b9b34ee
      https://github.com/numpy/numpy/commit/b1dfdea4b7e1a1e52f933dfdc075030f4b9b34ee
  Author: Yoshiki Vázquez Baeza <yoshiki.vazquezbaeza at colorado.edu>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M numpy/testing/tests/test_utils.py

  Log Message:
  -----------
  TST: Remove test that makes no sense

It's silly to check scalars when their string representations will vary
so much from system to system.


  Commit: a11c16249451c552e70a5ff73406f95b50961aa5
      https://github.com/numpy/numpy/commit/a11c16249451c552e70a5ff73406f95b50961aa5
  Author: Yoshiki Vázquez Baeza <yoshiki.vazquezbaeza at colorado.edu>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M numpy/testing/tests/test_utils.py

  Log Message:
  -----------
  TST: Change tests to look at array formatting only

The tests were looking at the formatting of other elements in the string
which is not relevant for the things testsed in this case. By looking
only at the array formatting, we guarantee consistency across systems.


  Commit: d35d5c1a1ff9cb9d60da54d8d1e6a66a042b0d27
      https://github.com/numpy/numpy/commit/d35d5c1a1ff9cb9d60da54d8d1e6a66a042b0d27
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2014-03-26 (Wed, 26 Mar 2014)

  Changed paths:
    M numpy/testing/tests/test_utils.py
    M numpy/testing/utils.py

  Log Message:
  -----------
  Merge pull request #4541 from ElDeveloper/issue-2367

BUG:change formatting of assert_array_almost_equal


Compare: https://github.com/numpy/numpy/compare/09530882e439...d35d5c1a1ff9


More information about the Numpy-svn mailing list