From 6a2535f101563033616d44630d6c225fa609fc01 Mon Sep 17 00:00:00 2001 From: "Martin C. Richards" Date: Sat, 16 Aug 2025 14:03:28 +0200 Subject: [PATCH] fix lint --- tests/conftest.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index f9a496c5..9da1c776 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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