We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88263b9 commit 6630068Copy full SHA for 6630068
1 file changed
src/pytest_cases/plugin.py
@@ -337,14 +337,13 @@ def _build_closure(self,
337
338
# add all dependencies, accounting for overrides
339
if PYTEST9_OR_GREATER:
340
- dependencies_set = set()
+ dependencies = []
341
for _fixture_or_overridden in reversed(fixturedefs):
342
- dependencies_set.update(_fixture_or_overridden.argnames)
+ dependencies = list(_fixture_or_overridden.argnames) + dependencies
343
# If there's an override and doesn't depend on the overridden fixture,
344
# ignore remaining definitions
345
if fixname not in _fixture_or_overridden.argnames:
346
break
347
- dependencies = list(dependencies_set)
348
else:
349
dependencies = _fixdef.argnames
350
0 commit comments