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

Function test_object_with_getitem

python/pyarrow/tests/test_convert_builtin.py:159–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157
158
159def test_object_with_getitem():
160 # https://github.com/apache/arrow/issues/34944
161 # considered as sequence because of __getitem__, but has no length
162 with pytest.raises(TypeError, match="has no len()"):
163 pa.array(ObjectWithOnlyGetitem())
164
165
166def _as_list(xs):

Callers

nothing calls this directly

Calls 2

arrayMethod · 0.45

Tested by

no test coverage detected