summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: