diff options
author | David Cournapeau <cournape@gmail.com> | 2008-04-08 18:04:33 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-04-08 18:04:33 +0000 |
commit | 2ba8132b518e08c6b25e54df0a025cf9aa006f06 (patch) | |
tree | a1466fea8cf1635ac4ffd8311050f6d9f4c625cb /numpy/testing/utils.py | |
parent | 0035f9187945a7d787bcadad38cfb84ca196bc18 (diff) | |
download | numpy-2ba8132b518e08c6b25e54df0a025cf9aa006f06.tar.gz |
Fix test for assert* with nan values + string formatting issue when handling nan.
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 654d55738..ab8d77b76 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -216,8 +216,8 @@ def assert_array_compare(comparison, x, y, err_msg='', verbose=True, except AssertionError: msg = build_err_msg([x, y], err_msg - + '\n(x and y nan location mismatch %s, ' - + '%s mismatch)' % (xnanid, ynanid), + + '\n(x and y nan location mismatch %s, ' \ + '%s mismatch)' % (xnanid, ynanid), verbose=verbose, header=header, names=('x', 'y')) val = comparison(x[~xnanid], y[~ynanid]) |