2021-10-24 03:29:20 +08:00
`` py.path.local `` arguments for hooks have been deprecated. See :ref: `the deprecation note <legacy-path-hooks-deprecated>` for full details.
2021-10-24 03:05:56 +08:00
`` py.path.local `` arguments to Node constructors have been deprecated. See :ref: `the deprecation note <node-ctor-fspath-deprecation>` for full details.
2021-12-06 18:25:05 +08:00
.. 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).