Skip to content

Commit

Permalink
Support platformdirs 3 (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Feb 11, 2023
1 parent 484d412 commit ff4086c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jupyter_core/tests/test_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from unittest.mock import patch

import pytest
from platformdirs import __version_info__

from jupyter_core import paths
from jupyter_core.paths import (
Expand Down Expand Up @@ -111,7 +112,8 @@ def test_config_dir():
@use_platformdirs
def test_config_dir_darwin():
config = jupyter_config_dir()
assert config == realpath("~/Library/Preferences/Jupyter")

assert config == realpath("~/Library/Application Support/Jupyter")


@windows
Expand Down Expand Up @@ -230,6 +232,9 @@ def test_runtime_dir_darwin_legacy():
@use_platformdirs
def test_runtime_dir_darwin():
runtime = jupyter_runtime_dir()
if __version_info__[0] < 3:
assert runtime == realpath("~/Library/Preferences/Jupyter/runtime")
return
assert runtime == realpath("~/Library/Application Support/Jupyter/runtime")


Expand Down

0 comments on commit ff4086c

Please sign in to comment.