Skip to content

Commit 83da71a

Browse files
committed
Fix test by removing hard coded temp directory
1 parent 976c5ed commit 83da71a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/test_cache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ def test_falsey_path_none() -> None:
1313
assert wc.cache_dir is None
1414

1515

16-
def test_subdirectory_fragment() -> None:
16+
def test_subdirectory_fragment(tmpdir: Path) -> None:
1717
"""
1818
Test the subdirectory URL fragment is part of the cache key.
1919
"""
20-
wc = WheelCache("/tmp/.foo/")
20+
wc = WheelCache(os.fspath(tmpdir))
2121
link1 = Link("git+https://g.c/o/r#subdirectory=d1")
2222
link2 = Link("git+https://g.c/o/r#subdirectory=d2")
2323
assert wc.get_path_for_link(link1) != wc.get_path_for_link(link2)

0 commit comments

Comments
 (0)