From 0bf2040ad89c120f81b7435e6b08dbbe30f48e78 Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Tue, 27 Sep 2022 10:16:03 -0600 Subject: [PATCH] Fix windows appdata tests --- jupyter_core/tests/test_paths.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jupyter_core/tests/test_paths.py b/jupyter_core/tests/test_paths.py index bbafb99..99b870a 100644 --- a/jupyter_core/tests/test_paths.py +++ b/jupyter_core/tests/test_paths.py @@ -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 @@ -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 @@ -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():