summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStéphane Bidoul <stephane.bidoul@gmail.com>2023-04-10 14:37:40 +0200
committerStéphane Bidoul <stephane.bidoul@gmail.com>2023-04-14 08:03:49 +0200
commitcaafe6e87d4f2998a77b194297e1c204cf6e10c2 (patch)
tree464ca1d5f16173e914a9836359c3db3dcfae8a2a
parenta6ef6485be9512f18121298b058797c578f65d45 (diff)
downloadpip-caafe6e87d4f2998a77b194297e1c204cf6e10c2.tar.gz
Add a couple of asserts
-rw-r--r--src/pip/_internal/resolution/resolvelib/candidates.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pip/_internal/resolution/resolvelib/candidates.py b/src/pip/_internal/resolution/resolvelib/candidates.py
index 3429f01e1..7c2aae3b8 100644
--- a/src/pip/_internal/resolution/resolvelib/candidates.py
+++ b/src/pip/_internal/resolution/resolvelib/candidates.py
@@ -277,6 +277,8 @@ class LinkCandidate(_InstallRequirementBackedCandidate):
)
if cache_entry is not None:
+ assert ireq.link.is_wheel
+ assert ireq.link.is_file
if cache_entry.persistent and template.link is template.original_link:
ireq.is_wheel_from_cache = True
if cache_entry.origin is not None: