From 2eae9616c5d8b67b644b52be26a1abbbf658e347 Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Wed, 16 Sep 2009 07:15:42 +0000 Subject: Move masked array test out of numpy.core. --- numpy/ma/tests/test_core.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'numpy/ma/tests') diff --git a/numpy/ma/tests/test_core.py b/numpy/ma/tests/test_core.py index 286090ad8..61f315753 100644 --- a/numpy/ma/tests/test_core.py +++ b/numpy/ma/tests/test_core.py @@ -3199,6 +3199,10 @@ class TestMaskedView(TestCase): self.failUnless(isinstance(test, np.matrix)) self.failUnless(not isinstance(test, MaskedArray)) +def test_masked_array(): + a = np.ma.array([0, 1, 2, 3], mask=[0, 0, 1, 0]) + assert_equal(np.argwhere(a), [[1], [3]]) + ############################################################################### #------------------------------------------------------------------------------ if __name__ == "__main__": -- cgit v1.2.1