()
| 2269 | |
| 2270 | @pytest.mark.numpy |
| 2271 | def test_cast_time32_to_int(): |
| 2272 | arr = pa.array(np.array([0, 1, 2], dtype='int32'), |
| 2273 | type=pa.time32('s')) |
| 2274 | expected = pa.array([0, 1, 2], type='i4') |
| 2275 | |
| 2276 | result = arr.cast('i4') |
| 2277 | assert result.equals(expected) |
| 2278 | |
| 2279 | |
| 2280 | @pytest.mark.numpy |