summaryrefslogtreecommitdiff
path: root/tests/functional/test_cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/test_cache.py')
-rw-r--r--tests/functional/test_cache.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/functional/test_cache.py b/tests/functional/test_cache.py
index 7d20f5e31..788abdd2b 100644
--- a/tests/functional/test_cache.py
+++ b/tests/functional/test_cache.py
@@ -107,7 +107,7 @@ def list_matches_wheel(wheel_name: str, result: TestPipResult) -> bool:
`- foo-1.2.3-py3-none-any.whl `."""
lines = result.stdout.splitlines()
expected = f" - {wheel_name}-py3-none-any.whl "
- return any(map(lambda l: l.startswith(expected), lines))
+ return any(map(lambda line: line.startswith(expected), lines))
def list_matches_wheel_abspath(wheel_name: str, result: TestPipResult) -> bool:
@@ -121,7 +121,9 @@ def list_matches_wheel_abspath(wheel_name: str, result: TestPipResult) -> bool:
expected = f"{wheel_name}-py3-none-any.whl"
return any(
map(
- lambda l: os.path.basename(l).startswith(expected) and os.path.exists(l),
+ lambda line: (
+ os.path.basename(line).startswith(expected) and os.path.exists(line)
+ ),
lines,
)
)