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