This commit is contained in:
Martin C. Richards 2025-08-16 14:03:28 +02:00
parent fd45639ad6
commit 6a2535f101
1 changed files with 4 additions and 3 deletions

View File

@ -50,9 +50,10 @@ def temp_data_dir():
temp_dir = tempfile.mkdtemp()
yield temp_dir
try:
shutil.rmtree(temp_dir)
except OSError:
pass # Directory might already be deleted
# pyrefly: ignore[deprecated]
shutil.rmtree(temp_dir, ignore_errors=True)
except Exception:
pass
@pytest.fixture