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

Function test_failing_iterator

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

Source from the content-addressed store, hash-verified

121
122
123def test_failing_iterator():
124 with pytest.raises(ZeroDivisionError):
125 pa.array((1 // 0 for x in range(10)))
126 # ARROW-17253
127 with pytest.raises(ZeroDivisionError):
128 pa.array((1 // 0 for x in range(10)), size=10)
129
130
131def test_failing_iterator_does_not_leak():

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.45

Tested by

no test coverage detected