summaryrefslogtreecommitdiff
path: root/numpy/ma/testutils.py
diff options
context:
space:
mode:
authormdroe <mdroe@localhost>2009-12-07 21:12:20 +0000
committermdroe <mdroe@localhost>2009-12-07 21:12:20 +0000
commitdfebefba4ff24627c0be0c97dc198a16573f2866 (patch)
tree9e5c7b3b3918d93157ff6c7e8e5b419ef31e265b /numpy/ma/testutils.py
parent9fef44316518533cdfb6314b32fcbb015fa9f836 (diff)
downloadnumpy-dfebefba4ff24627c0be0c97dc198a16573f2866.tar.gz
Cleanup r7978 (add err_msg support to assert_mask_equal
Diffstat (limited to 'numpy/ma/testutils.py')
-rw-r--r--numpy/ma/testutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/ma/testutils.py b/numpy/ma/testutils.py
index 5234e0db4..1918e97a0 100644
--- a/numpy/ma/testutils.py
+++ b/numpy/ma/testutils.py
@@ -228,10 +228,10 @@ def assert_array_less(x, y, err_msg='', verbose=True):
header='Arrays are not less-ordered')
-def assert_mask_equal(m1, m2):
+def assert_mask_equal(m1, m2, err_msg=''):
"""Asserts the equality of two masks."""
if m1 is nomask:
assert(m2 is nomask)
if m2 is nomask:
assert(m1 is nomask)
- assert_array_equal(m1, m2)
+ assert_array_equal(m1, m2, err_msg=err_msg)