summaryrefslogtreecommitdiff
path: root/numpy/ma/tests/test_extras.py
diff options
context:
space:
mode:
authorLev Abalkin <abalkin@enlnt.com>2014-03-08 20:01:24 -0500
committerLev Abalkin <abalkin@enlnt.com>2014-04-01 22:04:15 -0400
commit76c9bb336f77aa406c62ab5f3077517dec133d30 (patch)
tree77edcef23beb0b33a88203d811d142524ec19c4b /numpy/ma/tests/test_extras.py
parent4da29a8e7393356094b0eb3289b14360beac9d89 (diff)
downloadnumpy-76c9bb336f77aa406c62ab5f3077517dec133d30.tar.gz
BUG: Masked arrays and apply_over_axes
Masked arrays version of apply_over_axes did not apply function correctly to arrays with non-trivial masks. Fixes #4461.
Diffstat (limited to 'numpy/ma/tests/test_extras.py')
-rw-r--r--numpy/ma/tests/test_extras.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/ma/tests/test_extras.py b/numpy/ma/tests/test_extras.py
index dc0f87b92..fa7503392 100644
--- a/numpy/ma/tests/test_extras.py
+++ b/numpy/ma/tests/test_extras.py
@@ -489,7 +489,8 @@ class TestApplyOverAxes(TestCase):
assert_equal(test, ctrl)
a[(a % 2).astype(np.bool)] = masked
test = apply_over_axes(np.sum, a, [0, 2])
- ctrl = np.array([[[30], [44], [60]]])
+ ctrl = np.array([[[28], [44], [60]]])
+ assert_equal(test, ctrl)
class TestMedian(TestCase):