You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Joris Van den Bossche (Jira)" <ji...@apache.org> on 2022/10/21 11:30:00 UTC

[jira] [Created] (ARROW-18125) [Python] Handle pytest 8 deprecations about pytest.warns(None)

Joris Van den Bossche created ARROW-18125:
---------------------------------------------

             Summary: [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
            Reporter: Joris Van den Bossche
             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)