From af40473c9a5547d6d26a9670556cb53d1ad952a4 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Wed, 1 May 2019 11:46:35 -0300 Subject: [PATCH] Add quick note about accessing config through session or item objects Fix #5030 --- doc/en/deprecations.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/en/deprecations.rst b/doc/en/deprecations.rst index 05bfc7c49..27af2a49a 100644 --- a/doc/en/deprecations.rst +++ b/doc/en/deprecations.rst @@ -60,7 +60,8 @@ If you still have concerns about this deprecation and future removal, please com The ``pytest.config`` global object is deprecated. Instead use ``request.config`` (via the ``request`` fixture) or if you are a plugin author -use the ``pytest_configure(config)`` hook. +use the ``pytest_configure(config)`` hook. Note that many hooks can also access +the ``config`` object indirectly, through ``session.config`` or ``item.config`` for example. .. _raises-warns-exec: