summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_arraysetops.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/lib/tests/test_arraysetops.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/lib/tests/test_arraysetops.py')
-rw-r--r--numpy/lib/tests/test_arraysetops.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_arraysetops.py b/numpy/lib/tests/test_arraysetops.py
index 39196f4bc..852183ffe 100644
--- a/numpy/lib/tests/test_arraysetops.py
+++ b/numpy/lib/tests/test_arraysetops.py
@@ -5,7 +5,7 @@ from __future__ import division, absolute_import, print_function
import numpy as np
from numpy.testing import (
- run_module_suite, TestCase, assert_array_equal
+ run_module_suite, TestCase, assert_array_equal, assert_equal
)
from numpy.lib.arraysetops import (
ediff1d, intersect1d, setxor1d, union1d, setdiff1d, unique, in1d
@@ -286,6 +286,8 @@ class TestSetOps(TestCase):
assert_array_equal(c, ec)
assert_array_equal([], setdiff1d([], []))
+ a = np.array((), np.uint32)
+ assert_equal(setdiff1d(a, []).dtype, np.uint32)
def test_setdiff1d_char_array(self):
a = np.array(['a', 'b', 'c'])