summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2019-05-12 09:27:12 -0700
committerGitHub <noreply@github.com>2019-05-12 09:27:12 -0700
commitd2d589703d5ee743251fbc6ea045f28e1c5e9e71 (patch)
treedf60e9574f8a2af7ad29cfbde2ad68b8a2ed405a /numpy/lib/tests/test_function_base.py
parent798dce7d2f4d661eef2604bbd68fbe068c8d1ad6 (diff)
parent599dbade766ad3fecc82afa308803a2e0082c149 (diff)
downloadnumpy-d2d589703d5ee743251fbc6ea045f28e1c5e9e71.tar.gz
Merge pull request #10308 from eric-wieser/mask-attr-is-view
API: Make MaskedArray.mask return a view, rather than the underlying mask
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r--numpy/lib/tests/test_function_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py
index a5ae2eeed..a3d4c6efb 100644
--- a/numpy/lib/tests/test_function_base.py
+++ b/numpy/lib/tests/test_function_base.py
@@ -948,7 +948,7 @@ class TestGradient(object):
assert_equal(type(out), type(x))
# And make sure that the output and input don't have aliased mask
# arrays
- assert_(x.mask is not out.mask)
+ assert_(x._mask is not out._mask)
# Also check that edge_order=2 doesn't alter the original mask
x2 = np.ma.arange(5)
x2[2] = np.ma.masked