From 43f394f128e2acc44db53238093fddb8cf37f935 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sat, 16 Mar 2024 23:18:32 +0200 Subject: [PATCH] Update src/_pytest/fixtures.py --- src/_pytest/fixtures.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/_pytest/fixtures.py b/src/_pytest/fixtures.py index 55dc71fee..48429a023 100644 --- a/src/_pytest/fixtures.py +++ b/src/_pytest/fixtures.py @@ -544,10 +544,9 @@ class FixtureRequest(abc.ABC): If the given fixture could not be found. """ # Note that in addition to the use case described in the docstring, - # getfixturevalue() is also called by pytest itself during item setup to - # evaluate the fixtures that are requested statically + # getfixturevalue() is also called by pytest itself during item and fixture + # setup to evaluate the fixtures that are requested statically # (using function parameters, autouse, etc). - # As well as called by `pytest_fixture_setup()` fixturedef = self._get_active_fixturedef(argname) assert fixturedef.cached_result is not None, (