Skip to content

Commit 53ebe34

Browse files
Apply suggestions from code review
Co-authored-by: Bruno Oliveira <[email protected]>
1 parent deb5b5b commit 53ebe34

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/en/deprecations.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ Below is a complete list of all pytest features which are considered deprecated.
2222
``py.path.local`` arguments for hooks replaced with ``pathlib.Path``
2323
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2424

25-
In order to support the transition oto pathlib, the following hooks added additional arugments:
25+
In order to support the transition to :mod:`pathlib`, the following hooks now receive additional arguments:
2626

27-
* ``pytest_ignore_collect(fspath: pathlib.Path)``
28-
* ``pytest_collect_file(fspath: pathlib.Path)``
29-
* ``pytest_pycollect_makemodule(fspath: pathlib.Path)``
30-
* ``pytest_report_header(startpath: pathlib.Path)``
31-
* ``pytest_report_collectionfinish(startpath: pathlib.Path)``
27+
* :func:`pytest_ignore_collect(fspath: pathlib.Path) <_pytest.hookspec.pytest_ignore_collect>`
28+
* :func:`pytest_collect_file(fspath: pathlib.Path) <_pytest.hookspec.pytest_collect_file>`
29+
* :func:`pytest_pycollect_makemodule(fspath: pathlib.Path) <_pytest.hookspec.pytest_pycollect_makemodule>`
30+
* :func:`pytest_report_header(startpath: pathlib.Path) <_pytest.hookspec.pytest_report_header>`
31+
* :func:`pytest_report_collectionfinish(startpath: pathlib.Path) <_pytest.hookspec.pytest_report_collectionfinish>`
3232

33-
The accompanying ``py.path.local`` based paths have been deprecated.
33+
The accompanying ``py.path.local`` based paths have been deprecated: plugins which manually invoke those hooks should only pass the new ``pathlib.Path`` arguments, and users should change their hook implementations to use the new ``pathlib.Path`` arguments.
3434

3535

3636
``Node.fspath`` in favor of ``pathlib`` and ``Node.path``

0 commit comments

Comments
 (0)