jaraco / pytest-checkdocs

MIT License
6 stars 5 forks source link

PytestRemovedIn9Warning: py.path.local #23

Closed jaraco closed 4 months ago

jaraco commented 4 months ago

I've started seeing this warning, but only in select places (specifically, before test session start when running jaraco.xonsh tests):

/tox/py/lib/python3.12/site-packages/pytest_checkdocs/__init__.py:12: PytestRemovedIn9Warning: The (path: py.path.local) argument is deprecated, please use (file_path: pathlib.Path)
see https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
  def pytest_collect_file(path, parent):

No idea why the warning doesn't emit when running the tests for this project.