Skip to content

Commit

Permalink
Fix windows appdata tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Sep 27, 2022
1 parent 69e053d commit 0bf2040
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jupyter_core/tests/test_paths.py
Expand Up @@ -113,7 +113,7 @@ def test_config_dir_darwin():
@use_platformdirs
def test_config_dir_windows():
config = jupyter_config_dir()
assert config == realpath(pjoin(os.environ.get("APPDATA", ""), "Local", "Jupyter"))
assert config == realpath(pjoin(os.environ.get("LOCALAPPDATA", ""), "Jupyter"))

@linux
@use_platformdirs
Expand Down Expand Up @@ -171,7 +171,7 @@ def test_data_dir_windows_legacy():
@use_platformdirs
def test_data_dir_windows():
data = jupyter_data_dir()
assert data == realpath(pjoin(os.environ.get("APPDATA", ""), "Local", "Jupyter"))
assert data == realpath(pjoin(os.environ.get("LOCALAPPDATA", ""), "Jupyter"))


@linux
Expand Down Expand Up @@ -235,7 +235,7 @@ def test_runtime_dir_windows_legacy():
@use_platformdirs
def test_runtime_dir_windows():
runtime = jupyter_runtime_dir()
assert runtime == realpath(pjoin(os.environ.get("CSIDL_LOCAL_APPDATA", ""), "Jupyter", "runtime"))
assert runtime == realpath(pjoin(os.environ.get("LOCALAPPDATA", ""), "Jupyter", "runtime"))

@linux
def test_runtime_dir_linux_legacy():
Expand Down

0 comments on commit 0bf2040

Please sign in to comment.