From 779b01b039e05150ec21047fc04061fab55e5f42 Mon Sep 17 00:00:00 2001 From: Mark Wiebe Date: Thu, 27 Jan 2011 11:00:07 -0800 Subject: WRN: iter: Fix half-float warnings, other small tweaks --- numpy/ma/testutils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'numpy/ma/testutils.py') 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 -- cgit v1.2.1