Merge pull request #12037 from bluetech/fixtures-getnextfixturedef-parent

fixtures: remove unneeded optimization from `_getnextfixturedef`
This commit is contained in:
Ran Benita 2024-02-28 09:28:15 +02:00 committed by GitHub
commit c967d508d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -413,9 +413,7 @@ class FixtureRequest(abc.ABC):
# We arrive here because of a dynamic call to
# getfixturevalue(argname) usage which was naturally
# not known at parsing/collection time.
parent = self._pyfuncitem.parent
assert parent is not None
fixturedefs = self._fixturemanager.getfixturedefs(argname, parent)
fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem)
if fixturedefs is not None:
self._arg2fixturedefs[argname] = fixturedefs
# No fixtures defined with this name.