diff options
Diffstat (limited to 'numpy/ma')
-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 |