fix lint
This commit is contained in:
parent
fd45639ad6
commit
6a2535f101
|
|
@ -50,9 +50,10 @@ def temp_data_dir():
|
||||||
temp_dir = tempfile.mkdtemp()
|
temp_dir = tempfile.mkdtemp()
|
||||||
yield temp_dir
|
yield temp_dir
|
||||||
try:
|
try:
|
||||||
shutil.rmtree(temp_dir)
|
# pyrefly: ignore[deprecated]
|
||||||
except OSError:
|
shutil.rmtree(temp_dir, ignore_errors=True)
|
||||||
pass # Directory might already be deleted
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue