diff options
author | MattHarrigan <harrigan.matthew@gmail.com> | 2016-10-27 19:38:01 -0400 |
---|---|---|
committer | MattHarrigan <harrigan.matthew@gmail.com> | 2016-10-27 20:17:26 -0400 |
commit | 9a90abf995d0d8d9e96992a083dc55a41a93254f (patch) | |
tree | 7308b4d4765e3edc5636bfd90385da9142db2068 /numpy/lib/tests/test_arraysetops.py | |
parent | b0e66ad754c2a2efeb8c6f39418e5bb7d3e388c5 (diff) | |
download | numpy-9a90abf995d0d8d9e96992a083dc55a41a93254f.tar.gz |
BUG: return subclasses from ediff1d
Diffstat (limited to 'numpy/lib/tests/test_arraysetops.py')
-rw-r--r-- | numpy/lib/tests/test_arraysetops.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_arraysetops.py b/numpy/lib/tests/test_arraysetops.py index b75a2b060..75918fbee 100644 --- a/numpy/lib/tests/test_arraysetops.py +++ b/numpy/lib/tests/test_arraysetops.py @@ -175,6 +175,8 @@ class TestSetOps(TestCase): assert_array_equal([1,7,8], ediff1d(two_elem, to_end=[7,8])) assert_array_equal([7,1], ediff1d(two_elem, to_begin=7)) assert_array_equal([5,6,1], ediff1d(two_elem, to_begin=[5,6])) + assert(isinstance(ediff1d(np.matrix(1)), np.matrix)) + assert(isinstance(ediff1d(np.matrix(1), to_begin=1), np.matrix)) def test_in1d(self): # we use two different sizes for the b array here to test the |