summaryrefslogtreecommitdiff
path: root/numpy/ma/tests/test_extras.py
diff options
context:
space:
mode:
authorMarten van Kerkwijk <mhvk@astro.utoronto.ca>2018-04-26 17:39:58 -0400
committerMarten van Kerkwijk <mhvk@astro.utoronto.ca>2018-04-27 12:04:03 -0400
commitf18ebf68cfdf7aa816e42b1d358ad416b31a0ec1 (patch)
tree2bdd7ba0c93159650ab574489d9fea93d377721b /numpy/ma/tests/test_extras.py
parentdadfb545e1cc8d873b999d82d331c0c58f11901f (diff)
downloadnumpy-f18ebf68cfdf7aa816e42b1d358ad416b31a0ec1.tar.gz
MAINT: move all masked array matrix tests to matrixlib.
Further progress in isolating matrix in preparation of its deprecation. There is one place left with an explicit reference to matrix (in MaskedArray.count), which is to be solved later.
Diffstat (limited to 'numpy/ma/tests/test_extras.py')
-rw-r--r--numpy/ma/tests/test_extras.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/ma/tests/test_extras.py b/numpy/ma/tests/test_extras.py
index a7a32b628..2d5e30b2c 100644
--- a/numpy/ma/tests/test_extras.py
+++ b/numpy/ma/tests/test_extras.py
@@ -311,6 +311,9 @@ class TestConcatenator(object):
assert_raises(np.ma.MAError, lambda: mr_['1, 2; 3, 4'])
def test_matrix(self):
+ # Test consistency with unmasked version. If we ever deprecate
+ # matrix, this test should either still pass, or both actual and
+ # expected should fail to be build.
actual = mr_['r', 1, 2, 3]
expected = np.ma.array(np.r_['r', 1, 2, 3])
assert_array_equal(actual, expected)