X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/a69bda3b9bde208d5489eb2e37fc982b6bc1d8df..722735d20ebdc66c0da0e0df7658293455694500:/tests/test_black.py?ds=sidebyside 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