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

Function test_infinite_iterator

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

Source from the content-addressed store, hash-verified

112
113
114def test_infinite_iterator():
115 expected = pa.array((0, 1, 2))
116 arr1 = pa.array(itertools.count(0), size=3)
117 assert arr1.equals(expected)
118 # Same with explicit type
119 arr1 = pa.array(itertools.count(0), type=pa.int64(), size=3)
120 assert arr1.equals(expected)
121
122
123def test_failing_iterator():

Callers

nothing calls this directly

Calls 3

equalsMethod · 0.80
arrayMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected