Skip to content

Commit

Permalink
Skip test for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariko Wakabayashi committed Nov 19, 2020
1 parent bf81b14 commit 8e4065c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/services/contents/test_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,14 @@ async def test_good_symlink(file_contents_manager_class, tmp_path):
assert sorted(dir_model['content'], key=lambda x: x['name']) == [symlink_model, file_model]


@pytest.mark.skipif(
sys.platform.startswith('win'),
reason="Can't test permissions on Windows"
)
async def test_403(file_contents_manager_class, tmp_path):
if hasattr(os, 'getuid'):
if os.getuid() == 0:
raise pytest.skip("Can't test permissions as root")
if sys.platform.startswith('win'):
raise pytest.skip("Can't test permissions on Windows")

td = str(tmp_path)
cm = file_contents_manager_class(root_dir=td)
Expand Down

0 comments on commit 8e4065c

Please sign in to comment.