Skip to content

Commit

Permalink
Fix windows ci for skipif (#8989)
Browse files Browse the repository at this point in the history
  • Loading branch information
phofl authored Jan 16, 2025
1 parent bbdd2ee commit 15e518a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions distributed/tests/test_nanny.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,10 @@ async def test_local_directory(s):
assert n.process.worker_dir.count("dask-scratch-space") == 1


@pytest.mark.skipif(WINDOWS, reason="Need POSIX filesystem permissions and UIDs")
@pytest.mark.skipif(os.getuid() == 0, reason="Must not be root")
@pytest.mark.skipif(
WINDOWS or os.getuid() == 0,
reason="Need POSIX filesystem permissions and UIDs and Must not be root",
)
@gen_cluster(nthreads=[])
async def test_unwriteable_dask_worker_space(s, tmp_path):
os.mkdir(f"{tmp_path}/dask-scratch-space", mode=0o500)
Expand Down

0 comments on commit 15e518a

Please sign in to comment.