Skip to content

Commit 6cf1842

Browse files
author
Tyler Goodlet
committed
Add note about LIFO order for try[first/last] hooks
1 parent 4cfa3a5 commit 6cf1842

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ will be executed *first* or *last* respectively in the hook call loop:
197197
For another example see the `hook function ordering`_ section of the
198198
``pytest`` docs.
199199

200+
.. note::
201+
``tryfirst`` and ``trylast`` hooks are still invoked in LIFO order within
202+
each category.
203+
200204
Wrappers
201205
^^^^^^^^
202206
A *hookimpl* can be marked with a ``"hookwrapper"`` option which indicates that

0 commit comments

Comments
 (0)