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:22:28 +0000
committerEric Wieser <wieser.eric@gmail.com>2017-05-05 21:42:17 +0100
commit37d756c46424b2da04a87e7df45a6c64f9b50117 (patch)
tree9520af9aabfba8e759dbd35e681e6be0e302e899 /numpy/lib/tests/test_index_tricks.py
parente6b8e75547af0cc4d38af458eff5e5d6c14102b8 (diff)
downloadnumpy-37d756c46424b2da04a87e7df45a6c64f9b50117.tar.gz
BUG: Remove mutable state from AxisConcatenator
Fixes #8815
Diffstat (limited to 'numpy/lib/tests/test_index_tricks.py')
-rw-r--r--numpy/lib/tests/test_index_tricks.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_index_tricks.py b/numpy/lib/tests/test_index_tricks.py
index d9fa1f43e..434dd14b4 100644
--- a/numpy/lib/tests/test_index_tricks.py
+++ b/numpy/lib/tests/test_index_tricks.py
@@ -174,6 +174,17 @@ class TestConcatenator(TestCase):
assert_array_equal(d[:5, :], b)
assert_array_equal(d[5:, :], c)
+ def test_matrix_builder(self):
+ a = np.array([1])
+ b = np.array([2])
+ c = np.array([3])
+ d = np.array([4])
+ actual = np.r_['a, b; c, d']
+ expected = np.bmat([[a, b], [c, d]])
+
+ assert_equal(actual, expected)
+ assert_equal(type(actual), type(expected))
+
class TestNdenumerate(TestCase):
def test_basic(self):