Skip to content

Commit 3bc0feb

Browse files
Mariko WakabayashiZsailer
authored andcommitted
Skip test for windows
1 parent 0afe5b1 commit 3bc0feb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/services/contents/test_manager.py

Lines changed: 4 additions & 2 deletions
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)