Skip to content

Commit 15e518a

Browse files
authored
Fix windows ci for skipif (#8989)
1 parent bbdd2ee commit 15e518a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

distributed/tests/test_nanny.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,10 @@ async def test_local_directory(s):
428428
assert n.process.worker_dir.count("dask-scratch-space") == 1
429429

430430

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

0 commit comments

Comments
 (0)