summaryrefslogtreecommitdiff
path: root/numpy/matrixlib/tests/test_defmatrix.py
diff options
context:
space:
mode:
authorJaime Fernandez <jaime.frio@gmail.com>2015-05-10 03:47:21 -0700
committerJaime Fernandez <jaime.frio@gmail.com>2015-05-13 20:38:44 -0700
commit780cd6e70627f78f57cad3b1486e81936c1572a9 (patch)
tree5b85df44ba6e311a6f202c543a5834485f7efe38 /numpy/matrixlib/tests/test_defmatrix.py
parent30e3d41b6d11c18e17eb283a61bbe9bbf4bb4d8f (diff)
downloadnumpy-780cd6e70627f78f57cad3b1486e81936c1572a9.tar.gz
BUG: np.nonzero behaving differently for 1-D arrays
Fixes #5837
Diffstat (limited to 'numpy/matrixlib/tests/test_defmatrix.py')
-rw-r--r--numpy/matrixlib/tests/test_defmatrix.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/matrixlib/tests/test_defmatrix.py b/numpy/matrixlib/tests/test_defmatrix.py
index f3a8e72ca..166f68862 100644
--- a/numpy/matrixlib/tests/test_defmatrix.py
+++ b/numpy/matrixlib/tests/test_defmatrix.py
@@ -306,8 +306,8 @@ class TestMatrixReturn(TestCase):
assert_(type(a.real) is matrix)
assert_(type(a.imag) is matrix)
c, d = matrix([0.0]).nonzero()
- assert_(type(c) is matrix)
- assert_(type(d) is matrix)
+ assert_(type(c) is np.ndarray)
+ assert_(type(d) is np.ndarray)
class TestIndexing(TestCase):