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 976c5ed commit 83da71aCopy full SHA for 83da71a
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(tmpdir: 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(tmpdir))
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