Skip to content

Commit 934a0b1

Browse files
committed
fixtures: remove distracting comment
This is incidental to this function, better to focus on what it does.
1 parent d56b1af commit 934a0b1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/_pytest/fixtures.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,11 +1696,7 @@ def pytest_generate_tests(self, metafunc: Metafunc) -> None:
16961696
"""Generate new tests based on parametrized fixtures used by the given metafunc"""
16971697
for argname in metafunc.fixturenames:
16981698
# Get the FixtureDefs for the argname.
1699-
fixture_defs = metafunc._arg2fixturedefs.get(argname)
1700-
if not fixture_defs:
1701-
# Will raise FixtureLookupError at setup time if not parametrized somewhere
1702-
# else (e.g @pytest.mark.parametrize)
1703-
continue
1699+
fixture_defs = metafunc._arg2fixturedefs.get(argname, ())
17041700

17051701
# In the common case we only look at the fixture def with the
17061702
# closest scope (last in the list). But if the fixture overrides

0 commit comments

Comments
 (0)