Skip to content

Commit 46707a4

Browse files
committed
Merge branch 'issue/11924-requirements-on-extras' of github.com:sanderr/pip into issue/11924-requirements-on-extras
2 parents ce94946 + fbda0a2 commit 46707a4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/pip/_internal/resolution/resolvelib/factory.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,6 @@ def _make_requirements_from_install_req(
465465
ireq.name,
466466
ireq.markers,
467467
)
468-
yield from ()
469468
elif not ireq.link:
470469
if ireq.extras and ireq.req is not None and ireq.req.specifier:
471470
yield SpecifierWithoutExtrasRequirement(ireq)

tests/unit/resolution_resolvelib/test_requirement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,5 @@ def test_new_resolver_full_resolve(factory: Factory, provider: PipProvider) -> N
109109
reqs = list(factory.make_requirements_from_spec("simplewheel", comes_from=None))
110110
assert len(reqs) == 1
111111
r: Resolver[Requirement, Candidate, str] = Resolver(provider, BaseReporter())
112-
result = r.resolve([reqs[0]])
112+
result = r.resolve(reqs)
113113
assert set(result.mapping.keys()) == {"simplewheel"}

0 commit comments

Comments
 (0)