Skip to content

Commit

Permalink
Fix example in pytest_collection_modifyitems (#13152) (#13154)
Browse files Browse the repository at this point in the history
Ref #13149

(cherry picked from commit 4a6a512)

Co-authored-by: Bruno Oliveira <[email protected]>
  • Loading branch information
patchback[bot] and nicoddemus authored Jan 21, 2025
1 parent 02519fd commit ef06e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/hookspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def pytest_collection_modifyitems(
When items are deselected (filtered out from ``items``),
the hook :hook:`pytest_deselected` must be called explicitly
with the deselected items to properly notify other plugins,
e.g. with ``config.hook.pytest_deselected(deselected_items)``.
e.g. with ``config.hook.pytest_deselected(items=deselected_items)``.
:param session: The pytest session object.
:param config: The pytest config object.
Expand Down

0 comments on commit ef06e43

Please sign in to comment.