diff options
author | David Cournapeau <cournape@gmail.com> | 2009-07-27 08:36:46 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-07-27 08:36:46 +0000 |
commit | 0259a4972a81295353407dfaf4ba5adcb34a42db (patch) | |
tree | e2793404950d4985fa8988d067564dae28a3db12 /numpy/testing/utils.py | |
parent | e8b88c2d0529f2dac153e04537cf05d435a27a07 (diff) | |
download | numpy-0259a4972a81295353407dfaf4ba5adcb34a42db.tar.gz |
Fix header for assert_array_almost_equal.
Diffstat (limited to 'numpy/testing/utils.py')
-rw-r--r-- | numpy/testing/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py index b3a9cebcf..88d613e2c 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -294,8 +294,8 @@ def assert_almost_equal(actual,desired,decimal=7,err_msg='',verbose=True): from numpy.core import ndarray if isinstance(actual, ndarray) or isinstance(desired, ndarray): return assert_array_almost_equal(actual, desired, decimal, err_msg) - msg = build_err_msg([actual, desired], err_msg, verbose=verbose) - + msg = build_err_msg([actual, desired], err_msg, verbose=verbose, + header='Arrays are not almost equal') try: # If one of desired/actual is not finite, handle it specially here: # check that both are nan if any is a nan, and test for equality |