Skip to content

Commit 088718a

Browse files
committed
fixtures: remove an incorrect comment
The `request` thing is really accurate. The comment in the docstring is more accurate, so let's remove this redundant comment.
1 parent b1dc3db commit 088718a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/_pytest/fixtures.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,6 @@ def prune_dependency_tree(self) -> None:
345345
working_set = set(self.initialnames)
346346
while working_set:
347347
argname = working_set.pop()
348-
# Argname may be something not included in the original names_closure,
349-
# in which case we ignore it. This currently happens with pseudo
350-
# FixtureDefs which wrap 'get_direct_param_fixture_func(request)'.
351-
# So they introduce the new dependency 'request' which might have
352-
# been missing in the original tree (closure).
353348
if argname not in closure and argname in self.names_closure:
354349
closure.add(argname)
355350
if argname in self.name2fixturedefs:

0 commit comments

Comments
 (0)