summaryrefslogtreecommitdiff
path: root/numpy/ma/tests/test_extras.py
diff options
context:
space:
mode:
authorJaime <jaime.frio@gmail.com>2015-05-07 06:40:26 -0700
committerJaime <jaime.frio@gmail.com>2015-05-07 06:40:26 -0700
commit21932fbfc217b4a8bc547fa267ea5597d7dcb59b (patch)
tree2dcd7fc81806b6864c34d57930348dc9da6121a1 /numpy/ma/tests/test_extras.py
parent6bb8c0d46739d6d9bb23cb48670519d7eb620d4d (diff)
parentc05019eda16477f4be99f47755362c07e1acb5b8 (diff)
downloadnumpy-21932fbfc217b4a8bc547fa267ea5597d7dcb59b.tar.gz
Merge pull request #5847 from christianbrodbeck/fix/setdiff1d
BUG: setdiff1d return type Fixes 5846
Diffstat (limited to 'numpy/ma/tests/test_extras.py')
-rw-r--r--numpy/ma/tests/test_extras.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/ma/tests/test_extras.py b/numpy/ma/tests/test_extras.py
index b6749ae9e..3c7b95c9e 100644
--- a/numpy/ma/tests/test_extras.py
+++ b/numpy/ma/tests/test_extras.py
@@ -1109,6 +1109,8 @@ class TestArraySetOps(TestCase):
a = arange(10)
b = arange(8)
assert_equal(setdiff1d(a, b), array([8, 9]))
+ a = array([], np.uint32, mask=[])
+ assert_equal(setdiff1d(a, []).dtype, np.uint32)
def test_setdiff1d_char_array(self):
# Test setdiff1d_charray