summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_index_tricks.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2017-03-22 22:54:53 +0000
committerEric Wieser <wieser.eric@gmail.com>2017-05-05 21:44:46 +0100
commitd6069fb19107300e59ba57093cb87e44fa39599f (patch)
tree07e7884f346b5b95f68094cdc654dac0f4434d0f /numpy/lib/tests/test_index_tricks.py
parent0a4f3a050eca50b3ba9f5923656b052393babda4 (diff)
downloadnumpy-d6069fb19107300e59ba57093cb87e44fa39599f.tar.gz
BUG: np.r_['rc'] is treated as np.r_['r'], not an error
Diffstat (limited to 'numpy/lib/tests/test_index_tricks.py')
-rw-r--r--numpy/lib/tests/test_index_tricks.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_index_tricks.py b/numpy/lib/tests/test_index_tricks.py
index 67ff0e5d5..708c3c964 100644
--- a/numpy/lib/tests/test_index_tricks.py
+++ b/numpy/lib/tests/test_index_tricks.py
@@ -187,6 +187,8 @@ class TestConcatenator(TestCase):
assert_equal(np.array(ab_r), [[1,2,3,4]])
assert_equal(np.array(ab_c), [[1],[2],[3],[4]])
+ assert_raises(ValueError, lambda: np.r_['rc', a, b])
+
def test_matrix_builder(self):
a = np.array([1])
b = np.array([2])