Skip to content

Commit

Permalink
Update python/pyarrow/tests/test_extension_type.py
Browse files Browse the repository at this point in the history
Co-authored-by: Joris Van den Bossche <[email protected]>
  • Loading branch information
llama90 and jorisvandenbossche committed May 17, 2024
1 parent 9f0eab8 commit 4baf617
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/pyarrow/tests/test_extension_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,20 +277,20 @@ def test_ext_type_byte_width():
# Test for non fixed-size binary types
ty = LabelType()
with pytest.raises(ValueError, match="Non-fixed width type"):
_ = ty.storage_type.byte_width
_ = ty.byte_width


def test_ext_type_bit_width():
# Test for fixed-size binary types
ty = UuidType()
assert ty.storage_type.bit_width == 128
assert ty.bit_width == 128
ty = ParamExtType(5)
assert ty.storage_type.bit_width == 40
assert ty.bit_width == 40

# Test for non fixed-size binary types
ty = LabelType()
with pytest.raises(ValueError, match="Non-fixed width type"):
_ = ty.storage_type.byte_width
_ = ty.byte_width


def test_ext_type_as_py():
Expand Down

0 comments on commit 4baf617

Please sign in to comment.