We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c08d7d commit 90295fbCopy full SHA for 90295fb
tests/unit/test_cache.py
@@ -13,11 +13,11 @@ def test_falsey_path_none() -> None:
13
assert wc.cache_dir is None
14
15
16
-def test_subdirectory_fragment() -> None:
+def test_subdirectory_fragment(tmp_path: Path) -> None:
17
"""
18
Test the subdirectory URL fragment is part of the cache key.
19
20
- wc = WheelCache("/tmp/.foo/")
+ wc = WheelCache(os.fspath(tmp_path))
21
link1 = Link("git+https://g.c/o/r#subdirectory=d1")
22
link2 = Link("git+https://g.c/o/r#subdirectory=d2")
23
assert wc.get_path_for_link(link1) != wc.get_path_for_link(link2)
0 commit comments