def test_bytes(self):
    u1 = b'ma\xc3\xb1ana'
    data = [b'foo', u1.decode('utf-8'), None]
    arr = pyarrow.from_pylist(data)
    assert (len(arr) == 3)
    assert (arr.null_count == 1)
    assert (arr.type == pyarrow.binary())
    assert (arr.to_pylist() == [b'foo', u1, None])
def test_bytes(self):
    u1 = b'ma\xc3\xb1ana'
    data = [b'foo', u1.decode('utf-8'), None]
    arr = pyarrow.from_pylist(data)
    assert (len(arr) == 3)
    assert (arr.null_count == 1)
    assert (arr.type == pyarrow.binary())
    assert (arr.to_pylist() == [b'foo', u1, None])