Skip to content

Commit b82e1b8

Browse files
authored
Merge pull request #5195 from nicoddemus/pytest-config-docs
Add quick note about accessing config through session or item objects
2 parents f17b734 + af40473 commit b82e1b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/en/deprecations.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ If you still have concerns about this deprecation and future removal, please com
6060

6161
The ``pytest.config`` global object is deprecated. Instead use
6262
``request.config`` (via the ``request`` fixture) or if you are a plugin author
63-
use the ``pytest_configure(config)`` hook.
63+
use the ``pytest_configure(config)`` hook. Note that many hooks can also access
64+
the ``config`` object indirectly, through ``session.config`` or ``item.config`` for example.
6465

6566
.. _raises-warns-exec:
6667

0 commit comments

Comments
 (0)