summaryrefslogtreecommitdiff
path: root/numpy/ma/testutils.py
diff options
context:
space:
mode:
authorMark Wiebe <mwwiebe@gmail.com>2011-01-27 11:00:07 -0800
committerMark Wiebe <mwwiebe@gmail.com>2011-01-27 21:40:15 -0800
commit779b01b039e05150ec21047fc04061fab55e5f42 (patch)
treea8b6a1db994500cb14d3ccb174153268b6a75c8c /numpy/ma/testutils.py
parent2a1706fd84b2970f7ab64d9d46f1c0951eac8cfa (diff)
downloadnumpy-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.py5
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