Skip to content

Commit af40473

Browse files
committed
Add quick note about accessing config through session or item objects
Fix #5030
1 parent f17b734 commit af40473

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)