Skip to content

Commit 9aa57a7

Browse files
author
Mariko Wakabayashi
committed
Skip test for windows
1 parent f5285a5 commit 9aa57a7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/services/contents/test_manager.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,14 @@ async def test_good_symlink(file_contents_manager_class, tmp_path):
192192
assert sorted(dir_model['content'], key=lambda x: x['name']) == [symlink_model, file_model]
193193

194194

195+
@pytest.mark.skipif(
196+
sys.platform.startswith('win'),
197+
reason="Can't test permissions on Windows"
198+
)
195199
async def test_403(file_contents_manager_class, tmp_path):
196200
if hasattr(os, 'getuid'):
197201
if os.getuid() == 0:
198202
raise pytest.skip("Can't test permissions as root")
199-
if sys.platform.startswith('win'):
200-
raise pytest.skip("Can't test permissions on Windows")
201203

202204
td = str(tmp_path)
203205
cm = file_contents_manager_class(root_dir=td)

0 commit comments

Comments
 (0)