From 07cdee5aabdfb1c7be9542441bcf918b620b8253 Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Tue, 14 Jan 2025 08:48:56 -0600 Subject: [PATCH] Skip unwritable test if sudo --- distributed/tests/test_nanny.py | 1 + 1 file changed, 1 insertion(+) diff --git a/distributed/tests/test_nanny.py b/distributed/tests/test_nanny.py index b05b7dc90c3..22901a04a11 100644 --- a/distributed/tests/test_nanny.py +++ b/distributed/tests/test_nanny.py @@ -429,6 +429,7 @@ async def test_local_directory(s): @pytest.mark.skipif(WINDOWS, reason="Need POSIX filesystem permissions and UIDs") +@pytest.mark.skipif(os.getuid() == 0, reason="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)