(constructor)
| 3616 | @pytest.mark.numpy |
| 3617 | @pytest.mark.parametrize("constructor", [pa.table, pa.record_batch]) |
| 3618 | def test_numpy_array_protocol(constructor): |
| 3619 | table = constructor([[1, 2, 3], [4.0, 5.0, 6.0]], names=["a", "b"]) |
| 3620 | |
| 3621 | with pytest.raises(ValueError, match="Unable to avoid a copy"): |
| 3622 | np.array(table, copy=False) |
| 3623 | |
| 3624 | |
| 3625 | @pytest.mark.acero |