X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/a69bda3b9bde208d5489eb2e37fc982b6bc1d8df..7aa37ea0adf864baf3ef3dfbcfaf5ff1ff780250:/tests/test_black.py diff --git a/tests/test_black.py b/tests/test_black.py index bb5cc1e..537ca80 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -1963,11 +1963,11 @@ class TestCaching: # If BLACK_CACHE_DIR is not set, use user_cache_dir monkeypatch.delenv("BLACK_CACHE_DIR", raising=False) with patch_user_cache_dir: - assert get_cache_dir() == workspace1 + assert get_cache_dir().parent == workspace1 # If it is set, use the path provided in the env var. monkeypatch.setenv("BLACK_CACHE_DIR", str(workspace2)) - assert get_cache_dir() == workspace2 + assert get_cache_dir().parent == workspace2 def test_cache_broken_file(self) -> None: mode = DEFAULT_MODE