Skip to content

Commit 98be76f

Browse files
authored
Merge pull request #318 from hoefling/master
2 parents b3c94ef + 569aaf3 commit 98be76f

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

docs/index.rst

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ will be executed *first* or *last* respectively in the hook call loop:
349349
# load a plugin defined on a class
350350
pm.register(SomeOtherPlugin())
351351
352-
For another example see the `hook function ordering`_ section of the
352+
For another example see the :ref:`pytest:plugin-hookorder` section of the
353353
``pytest`` docs.
354354

355355
.. note::
@@ -405,7 +405,7 @@ the final result(s) returned back to the caller using the
405405
Hook wrappers can **not** return results (as per generator function
406406
semantics); they can only modify them using the ``_Result`` API.
407407

408-
Also see the `hookwrapper`_ section in the ``pytest`` docs.
408+
Also see the :ref:`pytest:hookwrapper` section in the ``pytest`` docs.
409409

410410
.. _specs:
411411

@@ -523,7 +523,7 @@ then ``None``.
523523
524524
This can be useful for optimizing a call loop for which you are only
525525
interested in a single core *hookimpl*. An example is the
526-
`pytest_cmdline_main`_ central routine of ``pytest``.
526+
:func:`~_pytest.hookspec.pytest_cmdline_main` central routine of ``pytest``.
527527
Note that all ``hookwrappers`` are still invoked with the first result.
528528

529529
Also see the :ref:`pytest:firstresult` section in the ``pytest`` docs.
@@ -933,14 +933,8 @@ Table of contents
933933

934934

935935
.. hyperlinks
936-
.. _pytest_cmdline_main:
937-
https://docs.pytest.org/en/latest/_modules/_pytest/hookspec.html#pytest_cmdline_main
938936
.. _hookspec module:
939937
https://docs.pytest.org/en/latest/_modules/_pytest/hookspec.html
940-
.. _hookwrapper:
941-
http://doc.pytest.org/en/latest/writing_plugins.html#hookwrapper-executing-around-other-hooks
942-
.. _hook function ordering:
943-
https://doc.pytest.org/en/latest/how-to/writing_hook_functions.html#hook-function-ordering-call-example
944938
.. _request-response pattern:
945939
https://en.wikipedia.org/wiki/Request%E2%80%93response
946940
.. _publish-subscribe:

src/pluggy/_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def after(outcome, hook_name, methods, kwargs):
349349
return self.add_hookcall_monitoring(before, after)
350350

351351
def subset_hook_caller(self, name, remove_plugins):
352-
""" Return a new :py:class:`.hooks._HookCaller` instance for the named method
352+
""" Return a new :py:class:`._hooks._HookCaller` instance for the named method
353353
which manages calls to all registered plugins except the
354354
ones from remove_plugins. """
355355
orig = getattr(self.hook, name)

0 commit comments

Comments
 (0)