Skip to content

Commit ea4ab48

Browse files
authored
Add the rest of the conditional cover pragmas
1 parent c04d15d commit ea4ab48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

piptools/resolver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ def resolve(self, max_rounds: int = 10) -> set[InstallRequirement]:
607607
preparer = self.command.make_requirement_preparer(**preparer_kwargs)
608608

609609
extra_resolver_kwargs = {}
610-
if PIP_VERSION[:2] < (25, 3):
610+
if PIP_VERSION[:2] < (25, 3): # pragma: <3.9 cover
611611
# Ref: https://github.com/jazzband/pip-tools/issues/2252
612612
extra_resolver_kwargs["use_pep517"] = self.options.use_pep517
613613

piptools/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def copy_install_requirement(
506506
"extras": template.extras,
507507
"user_supplied": template.user_supplied,
508508
}
509-
if PIP_VERSION[:2] < (25, 3):
509+
if PIP_VERSION[:2] < (25, 3): # pragma: <3.9 cover
510510
# Ref: https://github.com/jazzband/pip-tools/issues/2252
511511
kwargs["use_pep517"] = template.use_pep517
512512
kwargs["global_options"] = template.global_options

0 commit comments

Comments
 (0)