Raúl Cumplido created ARROW-16908: ------------------------------------- Summary: [Python] _check_pandas_roundtrip is failing on nightly build for wheel-manylinux20xx-cp37-amd64 Key: ARROW-16908 URL: https://issues.apache.org/jira/browse/ARROW-16908 Project: Apache Arrow Issue Type: Bug Components: Continuous Integration, Python Reporter: Raúl Cumplido Fix For: 9.0.0
Some of our nightly test builds are failing: {color:#1d1c1d}- {color}[wheel-manylinux2010-cp37-amd64|https://github.com/ursacomputing/crossbow/runs/7059586081?check_suite_focus=true] {color:#1d1c1d}- {color}[wheel-manylinux2014-cp37-amd64|https://github.com/ursacomputing/crossbow/runs/7059583114?check_suite_focus=true] with the following two errors: {code:java} =================================== FAILURES =================================== _______________ TestConvertMetadata.test_rangeindex_doesnt_warn ________________ self = <pyarrow.tests.test_pandas.TestConvertMetadata object at 0x7fe1e6fcc290> def test_rangeindex_doesnt_warn(self): # ARROW-5606: pandas 0.25 deprecated private _start/stop/step # attributes -> can be removed if support < pd 0.25 is dropped df = pd.DataFrame(np.random.randn(4, 2), columns=['a', 'b']) with pytest.warns(None) as record: _check_pandas_roundtrip(df, preserve_index=True) > assert len(record) == 0, [r.message for r in record] E AssertionError: [DeprecationWarning('`np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by it...cated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations')] E assert 4 == 0 E + where 4 = len(WarningsChecker(record=True)) usr/local/lib/python3.7/site-packages/pyarrow/tests/test_pandas.py:245: AssertionError _______________ TestConvertMetadata.test_multiindex_doesnt_warn ________________ self = <pyarrow.tests.test_pandas.TestConvertMetadata object at 0x7fe1e6fccd50> def test_multiindex_doesnt_warn(self): # ARROW-3953: pandas 0.24 rename of MultiIndex labels to codes columns = pd.MultiIndex.from_arrays([['one', 'two'], ['X', 'Y']]) df = pd.DataFrame([(1, 'a'), (2, 'b'), (3, 'c')], columns=columns) with pytest.warns(None) as record: _check_pandas_roundtrip(df, preserve_index=True) > assert len(record) == 0, [r.message for r in record] E AssertionError: [DeprecationWarning('`np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by it...cated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations')] E assert 6 == 0 E + where 6 = len(WarningsChecker(record=True)) usr/local/lib/python3.7/site-packages/pyarrow/tests/test_pandas.py:296: AssertionError {code} -- This message was sent by Atlassian Jira (v8.20.7#820007)