MCPcopy Index your code
hub / github.com/numpy/numpy / test_generator

Method test_generator

numpy/_core/tests/test_shape_base.py:175–179  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

173 assert_array_equal(res, desired)
174
175 def test_generator(self):
176 with pytest.raises(TypeError, match="arrays to stack must be"):
177 hstack(np.arange(3) for _ in range(2))
178 with pytest.raises(TypeError, match="arrays to stack must be"):
179 hstack(x for x in np.ones((3, 2)))
180
181 def test_casting_and_dtype(self):
182 a = np.array([1, 2, 3])

Callers

nothing calls this directly

Calls 1

hstackFunction · 0.90

Tested by

no test coverage detected