=================================== FAILURES ===================================
_____________________________ test_array_protocol ______________________________
def test_array_protocol():
if LooseVersion(pd.__version__) < '0.24.0':
pytest.skip('IntegerArray only introduced in 0.24')
def __arrow_array__(self, type=None):
return pa.array(self._data, mask=self._mask, type=type)
df = pd.DataFrame({'a': pd.Series([1, 2, None], dtype='Int64')})
# with latest pandas/arrow, trying to convert nullable integer errors
with pytest.raises(TypeError):
> pa.table(df)
E Failed: DID NOT RAISE <class 'TypeError'>
opt/conda/lib/python3.6/site-packages/pyarrow/tests/test_pandas.py:3035: Failed