summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Khan <anas.khan96@outlook.com>2018-01-10 00:16:37 +0530
committerAnas Khan <anas.khan96@outlook.com>2018-01-10 00:16:37 +0530
commit61021a4a5b8008e5ca7d92ecc5bf6e12dcc96257 (patch)
tree988daf3e13d86a69357b9760c38de997c21a7665
parent19ac9ee366a911d7765ab9a2831d4bf8076a9e31 (diff)
downloadnumpy-61021a4a5b8008e5ca7d92ecc5bf6e12dcc96257.tar.gz
adding a reference to the related issue
-rw-r--r--numpy/lib/tests/test_arraysetops.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_arraysetops.py b/numpy/lib/tests/test_arraysetops.py
index ec79600d7..ae4b3c3aa 100644
--- a/numpy/lib/tests/test_arraysetops.py
+++ b/numpy/lib/tests/test_arraysetops.py
@@ -247,6 +247,7 @@ class TestSetOps(object):
c = union1d(a, b)
assert_array_equal(c, ec)
+ # Tests gh-10340, arguments to union1d should be flattened if they are not already 1D
x = np.array([[0, 1, 2], [3, 4, 5]])
y = np.array([0, 1, 2, 3, 4])
ez = np.array([0, 1, 2, 3, 4, 5])