()
| 748 | |
| 749 | |
| 750 | def test_roundtrip_chunked_array_capsule(): |
| 751 | chunked = pa.chunked_array([pa.array(["a", "b", "c"])]) |
| 752 | |
| 753 | capsule = chunked.__arrow_c_stream__() |
| 754 | assert PyCapsule_IsValid(capsule, b"arrow_array_stream") == 1 |
| 755 | imported_chunked = pa.ChunkedArray._import_from_c_capsule(capsule) |
| 756 | assert imported_chunked.type == chunked.type |
| 757 | assert imported_chunked == chunked |
| 758 | |
| 759 | |
| 760 | def test_roundtrip_chunked_array_capsule_requested_schema(): |
nothing calls this directly
no test coverage detected