[
https://issues.apache.org/jira/browse/ARROW-18125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joris Van den Bossche updated ARROW-18125:
------------------------------------------
Component/s: Python
> [Python] Handle pytest 8 deprecations about pytest.warns(None)
> ---------------------------------------------------------------
>
> Key: ARROW-18125
> URL: https://issues.apache.org/jira/browse/ARROW-18125
> Project: Apache Arrow
> Issue Type: Test
> Components: Python
> Reporter: Joris Van den Bossche
> Priority: Major
> Fix For: 11.0.0
>
>
> We have a few warnings about that when running the tests, for example:
> {code}
> pyarrow/tests/test_pandas.py::TestConvertMetadata::test_rangeindex_doesnt_warn
> pyarrow/tests/test_pandas.py::TestConvertMetadata::test_multiindex_doesnt_warn
>
> /home/joris/miniconda3/envs/arrow-dev/lib/python3.10/site-packages/_pytest/python.py:192:
> PytestRemovedIn8Warning: Passing None has been deprecated.
> See
> https://docs.pytest.org/en/latest/how-to/capture-warnings.html#additional-use-cases-of-warnings-in-tests
> for alternatives in common use cases.
> result = testfunction(**testargs)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)