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

Function test_invalid_table_construct

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

Source from the content-addressed store, hash-verified

2334
2335@pytest.mark.numpy
2336def test_invalid_table_construct():
2337 array = np.array([0, 1], dtype=np.uint8)
2338 u8 = pa.uint8()
2339 arrays = [pa.array(array, type=u8), pa.array(array[1:], type=u8)]
2340
2341 with pytest.raises(pa.lib.ArrowInvalid):
2342 pa.Table.from_arrays(arrays, names=["a1", "a2"])
2343
2344
2345@pytest.mark.parametrize('data, klass', [

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.45

Tested by

no test coverage detected