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

Function test_read_column_with_generator

python/pyarrow/tests/test_feather.py:808–814  ·  view source on GitHub ↗
(tempdir, version)

Source from the content-addressed store, hash-verified

806
807
808def test_read_column_with_generator(tempdir, version):
809 table = pa.table([[1, 2, 3], [4, 5, 6], [7, 8, 9]], names=['a', 'b', 'c'])
810 path = str(tempdir / "data.feather")
811 write_feather(table, path, version=version)
812 columns_gen = (x for x in ['a', 'b', 'c'])
813 with pytest.raises(TypeError, match="Columns must be a sequence"):
814 read_table(path, columns=columns_gen)
815
816
817def test_nested_types(compression):

Callers

nothing calls this directly

Calls 2

write_featherFunction · 0.90
read_tableFunction · 0.90

Tested by

no test coverage detected