Skip to content

Commit a182c27

Browse files
committed
Run windows tests only on windows
1 parent a942444 commit a182c27

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

jupyter_core/tests/test_paths.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ def test_config_dir_darwin():
7474
config = jupyter_config_dir()
7575
assert config == jupyter_config_env
7676

77-
77+
@pytest.mark.skipif(sys.platform != "win32", reason="only run on windows")
7878
def test_config_dir_windows():
79-
with windows, no_config_env:
79+
with no_config_env:
8080
config = jupyter_config_dir()
8181
assert config == home_jupyter
8282

83-
with windows, config_env:
83+
with config_env:
8484
config = jupyter_config_dir()
8585
assert config == jupyter_config_env
8686

@@ -112,13 +112,13 @@ def test_data_dir_darwin():
112112
data = jupyter_data_dir()
113113
assert data == realpath('~/Library/Jupyter')
114114

115-
115+
@pytest.mark.skipif(sys.platform != "win32", reason="only run on windows")
116116
def test_data_dir_windows():
117-
with windows, appdata:
117+
with appdata:
118118
data = jupyter_data_dir()
119119
assert data == realpath(pjoin('appdata', 'jupyter'))
120120

121-
with windows, appdata, xdg:
121+
with appdata, xdg:
122122
# windows should ignore xdg
123123
data = jupyter_data_dir()
124124
assert data == realpath(pjoin('appdata', 'jupyter'))

0 commit comments

Comments
 (0)