MCPcopy Create free account
hub / github.com/apache/arrow / MyArrayInvalid

Class MyArrayInvalid

python/pyarrow/tests/test_array.py:3984–3989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3982
3983 # ensure the return value is an Array
3984 class MyArrayInvalid:
3985 def __init__(self, data):
3986 self.data = data
3987
3988 def __arrow_array__(self, type=None):
3989 return np.array(self.data)
3990
3991 arr = MyArrayInvalid(np.array([1, 2, 3], dtype='int64'))
3992 with pytest.raises(TypeError):

Callers 1

test_array_protocolFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_array_protocolFunction · 0.68