From 76e56c5cebfadc8702a62b6bc03433eb3e2748ef Mon Sep 17 00:00:00 2001 From: mirpedrol Date: Mon, 10 Feb 2025 11:54:27 +0100 Subject: [PATCH] try ignoring errors when deleting a modules work directory created with root --- tests/test_components.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_components.py b/tests/test_components.py index a6b22f668..2184319a2 100644 --- a/tests/test_components.py +++ b/tests/test_components.py @@ -31,7 +31,7 @@ def tearDown(self): # Clean up temporary files if self.tmp_dir.is_dir(): - shutil.rmtree(self.tmp_dir) + shutil.rmtree(self.tmp_dir, ignore_errors=True) @pytest.fixture(autouse=True) def _use_caplog(self, caplog):