fixtures: make sure to properly setup stack for _fill_fixtures_impl

This code is weird, dead, deprecated and will be removed in pytest 7,
but for now some tests execute it, so fix it up in preparation for
some changes.
This commit is contained in:
Ran Benita 2021-01-01 17:35:22 +02:00
parent 637300d13d
commit 6db082a448
1 changed files with 1 additions and 0 deletions

View File

@ -372,6 +372,7 @@ def _fill_fixtures_impl(function: "Function") -> None:
fi = fm.getfixtureinfo(function.parent, function.obj, None)
function._fixtureinfo = fi
request = function._request = FixtureRequest(function, _ispytest=True)
fm.session._setupstate.prepare(function)
request._fillfixtures()
# Prune out funcargs for jstests.
newfuncargs = {}