Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 1.3 KB

8144.feature.rst

File metadata and controls

16 lines (13 loc) · 1.3 KB

The following hooks now receive an additional pathlib.Path argument, equivalent to an existing py.path.local argument:

Note

The name of the :class:`~_pytest.nodes.Node` arguments and attributes (the new attribute being path) is the opposite of the situation for hooks (the old argument being path).

This is an unfortunate artifact due to historical reasons, which should be resolved in future versions as we slowly get rid of the :pypi:`py` dependency (see :issue:`9283` for a longer discussion).