Skip to content

Commit

Permalink
Run windows tests only on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Aug 17, 2021
1 parent a942444 commit a182c27
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions jupyter_core/tests/test_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ def test_config_dir_darwin():
config = jupyter_config_dir()
assert config == jupyter_config_env


@pytest.mark.skipif(sys.platform != "win32", reason="only run on windows")
def test_config_dir_windows():
with windows, no_config_env:
with no_config_env:
config = jupyter_config_dir()
assert config == home_jupyter

with windows, config_env:
with config_env:
config = jupyter_config_dir()
assert config == jupyter_config_env

Expand Down Expand Up @@ -112,13 +112,13 @@ def test_data_dir_darwin():
data = jupyter_data_dir()
assert data == realpath('~/Library/Jupyter')


@pytest.mark.skipif(sys.platform != "win32", reason="only run on windows")
def test_data_dir_windows():
with windows, appdata:
with appdata:
data = jupyter_data_dir()
assert data == realpath(pjoin('appdata', 'jupyter'))

with windows, appdata, xdg:
with appdata, xdg:
# windows should ignore xdg
data = jupyter_data_dir()
assert data == realpath(pjoin('appdata', 'jupyter'))
Expand Down

0 comments on commit a182c27

Please sign in to comment.