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

Method test_generator

numpy/core/tests/test_shape_base.py:154–158  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

152 assert_array_equal(res, desired)
153
154 def test_generator(self):
155 with pytest.raises(TypeError, match="arrays to stack must be"):
156 hstack((np.arange(3) for _ in range(2)))
157 with pytest.raises(TypeError, match="arrays to stack must be"):
158 hstack(map(lambda x: x, np.ones((3, 2))))
159
160 def test_casting_and_dtype(self):
161 a = np.array([1, 2, 3])

Callers

nothing calls this directly

Calls 1

hstackFunction · 0.90

Tested by

no test coverage detected