pytest-sugar icon indicating copy to clipboard operation
pytest-sugar copied to clipboard

PytestRemovedIn8Warning for py.path.local

Open AngellusMortis opened this issue 3 years ago • 0 comments

Started getting this in my test runs after upgrading pytest. Looks like it is something that will need to be fixed before pytest==8.

Link referenced in deprecation warning: https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path

pytest_sugar.py:250: PytestRemovedIn8Warning: The (startdir: py.path.local) argument is deprecated, please use (start_path: pathlib.Path)
see https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
  lines = self.config.hook.pytest_report_header(

AngellusMortis avatar Feb 22 '22 18:02 AngellusMortis