From eca6dc9e5083e0ff2575367e75d1c67851aa6e4b Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sat, 24 Oct 2026 10:56:05 +0200 Subject: [PATCH] test(library): mark the directory_batch fixture walk as outside the project tree test_no_raw_project_walk flagged the rglob in DirectoryBatchTests.tearDown. It walks the test's own TemporaryDirectory to make every directory writable again before cleanup, after tests that leave an unwritable parent behind, so the cached project-file helpers do not apply. Co-Authored-By: Claude Opus 5.5 (1M context) --- tests/unit/python/library/test_directory_batch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/python/library/test_directory_batch.py b/tests/unit/python/library/test_directory_batch.py index 8898324867..43f0a4678b 100644 --- a/tests/unit/python/library/test_directory_batch.py +++ b/tests/unit/python/library/test_directory_batch.py @@ -44,7 +44,7 @@ class DirectoryBatchTests(unittest.TestCase): self.root = Path(self._tmp.name) def tearDown(self): - for path in self.root.rglob("*"): + for path in self.root.rglob("*"): # nocheck: project-walk tempdir fixture, outside the project tree if path.is_dir() and not path.is_symlink(): path.chmod(0o700) self._tmp.cleanup()