(self)
| 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]) |