diff options
author | Mark Wiebe <mwwiebe@gmail.com> | 2011-01-27 11:00:07 -0800 |
---|---|---|
committer | Mark Wiebe <mwwiebe@gmail.com> | 2011-01-27 21:40:15 -0800 |
commit | 779b01b039e05150ec21047fc04061fab55e5f42 (patch) | |
tree | a8b6a1db994500cb14d3ccb174153268b6a75c8c /numpy/ma/testutils.py | |
parent | 2a1706fd84b2970f7ab64d9d46f1c0951eac8cfa (diff) | |
download | numpy-779b01b039e05150ec21047fc04061fab55e5f42.tar.gz |
WRN: iter: Fix half-float warnings, other small tweaks
Diffstat (limited to 'numpy/ma/testutils.py')
-rw-r--r-- | numpy/ma/testutils.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/ma/testutils.py b/numpy/ma/testutils.py index 235aac6e4..5cfc9f2ab 100644 --- a/numpy/ma/testutils.py +++ b/numpy/ma/testutils.py @@ -93,10 +93,7 @@ def assert_equal(actual, desired, err_msg=''): return _assert_equal_on_sequences(actual, desired, err_msg='') if not (isinstance(actual, ndarray) or isinstance(desired, ndarray)): msg = build_err_msg([actual, desired], err_msg,) - try: - if not desired == actual: - raise AssertionError(msg) - except ValueError: + if not desired == actual: raise AssertionError(msg) return # Case #4. arrays or equivalent |