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

Function test_empty_table_with_names

python/pyarrow/tests/test_table.py:1860–1867  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1858
1859
1860def test_empty_table_with_names():
1861 # ARROW-13784
1862 data = []
1863 names = ["a", "b"]
1864 message = (
1865 'Length of names [(]2[)] does not match length of arrays [(]0[)]')
1866 with pytest.raises(ValueError, match=message):
1867 pa.Table.from_arrays(data, names=names)
1868
1869
1870def test_empty_table():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected