Skip to content

Commit

Permalink
TST: Add bounds check tests for chunk getter
Browse files Browse the repository at this point in the history
  • Loading branch information
Licht-T committed Oct 24, 2017
1 parent bda7f4c commit cabdd43
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/pyarrow/tests/test_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ def test_table_basics():
for chunk in col.data.iterchunks():
assert chunk is not None

with pytest.raises(IndexError):
col.data.chunk(-1)

with pytest.raises(IndexError):
col.data.chunk(col.data.num_chunks)


def test_table_from_arrays_invalid_names():
data = [
Expand Down

0 comments on commit cabdd43

Please sign in to comment.