MCPcopy Create free account
hub / github.com/numpy/numpy / test_stack

Function test_stack

numpy/matrixlib/tests/test_interaction.py:145–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143
144
145def test_stack():
146 # 2018-04-29: copied here from core.tests.test_shape_base
147 # check np.matrix cannot be stacked
148 m = np.matrix([[1, 2], [3, 4]])
149 assert_raises_regex(ValueError, 'shape too large to be a matrix',
150 np.stack, [m, m])
151
152
153def test_object_scalar_multiply():

Callers

nothing calls this directly

Calls 1

assert_raises_regexFunction · 0.90

Tested by

no test coverage detected