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

Function test_iterator_without_size

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

Source from the content-addressed store, hash-verified

103
104
105def test_iterator_without_size():
106 expected = pa.array((0, 1, 2))
107 arr1 = pa.array(iter(range(3)))
108 assert arr1.equals(expected)
109 # Same with explicit type
110 arr1 = pa.array(iter(range(3)), type=pa.int64())
111 assert arr1.equals(expected)
112
113
114def test_infinite_iterator():

Callers

nothing calls this directly

Calls 2

equalsMethod · 0.80
arrayMethod · 0.45

Tested by

no test coverage detected