Skip to content

Commit 80bfba3

Browse files
committed
Improve WheelCache.get test
1 parent 9c74c02 commit 80bfba3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/unit/test_cache.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ def test_wheel_name_filter(tmpdir):
3939
with open(os.path.join(cache_path, "package-1.0-py3-none-any.whl"), "w"):
4040
pass
4141
# package matches wheel name
42-
assert wc.get(link, "package", [("py3", "none", "any")]) is not link
42+
cached_link = wc.get(link, "package", [("py3", "none", "any")])
43+
assert cached_link is not link
44+
assert os.path.exists(cached_link.file_path)
4345
# package2 does not match wheel name
4446
assert wc.get(link, "package2", [("py3", "none", "any")]) is link
4547

0 commit comments

Comments
 (0)