Skip to content

Commit 07cdee5

Browse files
committed
Skip unwritable test if sudo
1 parent 09cec1f commit 07cdee5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

distributed/tests/test_nanny.py

+1
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ async def test_local_directory(s):
429429

430430

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

0 commit comments

Comments
 (0)