Skip to content

Commit 443aa02

Browse files
authored
Merge pull request #9416 from bluetech/doc-stash-fix
doc: fix a reference in "Writing hook functions"
2 parents 0fecfff + 8071ad6 commit 443aa02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/en/how-to/writing_hook_functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ Plugins often need to store data on :class:`~pytest.Item`\s in one hook
321321
implementation, and access it in another. One common solution is to just
322322
assign some private attribute directly on the item, but type-checkers like
323323
mypy frown upon this, and it may also cause conflicts with other plugins.
324-
So pytest offers a better way to do this, :attr:`_pytest.nodes.Node.stash <item.stash>`.
324+
So pytest offers a better way to do this, :attr:`item.stash <_pytest.nodes.Node.stash>`.
325325

326326
To use the "stash" in your plugins, first create "stash keys" somewhere at the
327327
top level of your plugin:

0 commit comments

Comments
 (0)