Skip to content

Commit

Permalink
lint and python test
Browse files Browse the repository at this point in the history
  • Loading branch information
rok committed Aug 22, 2024
1 parent b39e945 commit d9d35cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions cpp/src/arrow/extension/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ if(ARROW_JSON)
endif()

add_arrow_test(test
SOURCES
${CANONICAL_EXTENSION_TESTS}
PREFIX
"arrow-canonical-extensions")
SOURCES
${CANONICAL_EXTENSION_TESTS}
PREFIX
"arrow-canonical-extensions")

arrow_install_all_headers("arrow/extension")
5 changes: 2 additions & 3 deletions python/pyarrow/tests/test_extension_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -1693,9 +1693,8 @@ def test_opaque_type(pickle_module, storage_type, storage):
arr = pa.ExtensionArray.from_storage(opaque_type, storage)
assert isinstance(arr, opaque_arr_class)

with registered_extension_type(opaque_type):
buf = ipc_write_batch(pa.RecordBatch.from_arrays([arr], ["ext"]))
batch = ipc_read_batch(buf)
buf = ipc_write_batch(pa.RecordBatch.from_arrays([arr], ["ext"]))
batch = ipc_read_batch(buf)

assert batch.column(0).type.extension_name == "arrow.opaque"
assert isinstance(batch.column(0), opaque_arr_class)
Expand Down

0 comments on commit d9d35cb

Please sign in to comment.