jorisvandenbossche commented on code in PR #41413:
URL: https://github.com/apache/arrow/pull/41413#discussion_r1605019844
##########
python/pyarrow/tests/test_extension_type.py:
##########
@@ -276,8 +276,7 @@ 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.byte_width
+ assert ty.byte_width == -1
Review Comment:
I think we want that the extension type is consistent here with the normal
data types, which raise an error in this case (you can check how the error is
raised in the base DataType class)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]