Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-18125

[Python] Handle pytest 8 deprecations about pytest.warns(None)

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 11.0.0
    • Python
    • None

    Description

      We have a few warnings about that when running the tests, for example:

      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)
      
      

      Attachments

        Issue Links

          Activity

            People

              milesgranger Miles Granger
              jorisvandenbossche Joris Van den Bossche
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: