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

Function gen

python/pyarrow/tests/test_cffi.py:482–489  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

480 old_allocated = pa.total_allocated_bytes()
481
482 def gen():
483 if True:
484 try:
485 raise ValueError('foo')
486 except ValueError as e:
487 raise NotImplementedError('bar') from e
488 else:
489 yield from make_batches()
490
491 original = pa.RecordBatchReader.from_batches(make_schema(), gen())
492 original._export_to_c(ptr_stream)

Callers 15

test_eqFunction · 0.85
do_actionMethod · 0.85
TEST_FFunction · 0.85
UnsafeAppendMethod · 0.85
ASSERT_OK_AND_ASSIGNFunction · 0.85
FirstBlockMethod · 0.85
generator.hFile · 0.85
GenerateTypedDataMethod · 0.85
TEST_PFunction · 0.85
TESTFunction · 0.85

Calls 1

make_batchesFunction · 0.70

Tested by

no test coverage detected