A deprecation warning is now raised when implementations of one of the following hooks request a deprecated py.path.local
parameter instead of the pathlib.Path
parameter which replaced it:
- 🪝`pytest_ignore_collect` - the
path
parameter - usecollection_path
instead. - 🪝`pytest_collect_file` - the
path
parameter - usefile_path
instead. - 🪝`pytest_pycollect_makemodule` - the
path
parameter - usemodule_path
instead. - 🪝`pytest_report_header` - the
startdir
parameter - usestart_path
instead. - 🪝`pytest_report_collectionfinish` - the
startdir
parameter - usestart_path
instead.
The replacement parameters are available since pytest 7.0.0. The old parameters will be removed in pytest 9.0.0.
See :ref:`legacy-path-hooks-deprecated` for more details.