diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2014-02-22 08:58:19 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2014-02-22 08:58:19 -0700 |
commit | 65a73df664ff5ac9da942b2d8f8b2737867ca82a (patch) | |
tree | 15c013555d772f24a4cb08ce470e4989eac5d4a5 /numpy/lib/tests/test_arraysetops.py | |
parent | 2882cc96639787335d135bf1fc10e1174c83831f (diff) | |
parent | a712c675d15385dc1cc3953a93423223d58d368d (diff) | |
download | numpy-65a73df664ff5ac9da942b2d8f8b2737867ca82a.tar.gz |
Merge pull request #4344 from jaimefrio/unique-sort
BUG: Fixes #2799
Diffstat (limited to 'numpy/lib/tests/test_arraysetops.py')
-rw-r--r-- | numpy/lib/tests/test_arraysetops.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_arraysetops.py b/numpy/lib/tests/test_arraysetops.py index 5934ca05a..e44ccd12b 100644 --- a/numpy/lib/tests/test_arraysetops.py +++ b/numpy/lib/tests/test_arraysetops.py @@ -65,6 +65,10 @@ class TestSetOps(TestCase): bb = np.array(list(zip(b, b)), dt) check_all(aa, bb, i1, i2, dt) + # test for ticket #2799 + aa = [1.+0.j, 1- 1.j, 1] + assert_array_equal(np.unique(aa), [ 1.-1.j, 1.+0.j]) + def test_intersect1d(self): # unique inputs a = np.array([5, 7, 1, 2]) |