Skip to content

Commit

Permalink
Merge pull request #10347 from The-Compiler/hookimpl-marker-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Oct 7, 2022
2 parents 4677580 + 72cac9b commit c4981f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/_pytest/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,12 +512,14 @@ def pytest_configure(self, config: "Config") -> None:
config.addinivalue_line(
"markers",
"tryfirst: mark a hook implementation function such that the "
"plugin machinery will try to call it first/as early as possible.",
"plugin machinery will try to call it first/as early as possible. "
"DEPRECATED, use @pytest.hookimpl(tryfirst=True) instead.",
)
config.addinivalue_line(
"markers",
"trylast: mark a hook implementation function such that the "
"plugin machinery will try to call it last/as late as possible.",
"plugin machinery will try to call it last/as late as possible. "
"DEPRECATED, use @pytest.hookimpl(trylast=True) instead.",
)
self._configured = True

Expand Down

0 comments on commit c4981f5

Please sign in to comment.