Skip to content

Commit

Permalink
Add unit test for repr on pre-init Array
Browse files Browse the repository at this point in the history
  • Loading branch information
xhochy committed Mar 28, 2016
1 parent 6208d7d commit d9a1160
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/pyarrow/tests/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@

class TestArrayAPI(unittest.TestCase):

def test_repr_on_pre_init_array(self):
arr = pyarrow.array.Array()
assert len(repr(arr)) > 0

def test_getitem_NA(self):
arr = pyarrow.from_pylist([1, None, 2])
assert arr[1] is pyarrow.NA
Expand Down

0 comments on commit d9a1160

Please sign in to comment.