From 4baf6175f1b0815e43d6e3a7b8a6c3de7ffae4f5 Mon Sep 17 00:00:00 2001 From: Hyunseok Seo Date: Fri, 17 May 2024 22:21:59 +0900 Subject: [PATCH] Update python/pyarrow/tests/test_extension_type.py Co-authored-by: Joris Van den Bossche --- python/pyarrow/tests/test_extension_type.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/pyarrow/tests/test_extension_type.py b/python/pyarrow/tests/test_extension_type.py index 9aada51be7281..cb2c881a53831 100644 --- a/python/pyarrow/tests/test_extension_type.py +++ b/python/pyarrow/tests/test_extension_type.py @@ -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():