Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(test): use ignore_errors on temp dir cleanup in rate limiting tests (#3335)

LearningCircuitdf53f20475b6
diff --git a/tests/auth_tests/test_auth_rate_limiting.py b/tests/auth_tests/test_auth_rate_limiting.py
index 815a42f974..479bb98468 100644
--- a/tests/auth_tests/test_auth_rate_limiting.py
+++ b/tests/auth_tests/test_auth_rate_limiting.py
@@ -18,7 +18,7 @@ class TestAuthRateLimiting:
"""Create a temporary data directory for testing."""
temp_dir = tempfile.mkdtemp()
yield Path(temp_dir)
- shutil.rmtree(temp_dir)
+ shutil.rmtree(temp_dir, ignore_errors=True)
@pytest.fixture
def app(self, temp_data_dir, monkeypatch):
@@ -410,7 +410,7 @@ class TestRateLimitReset:
"""Create a temporary data directory for testing."""
temp_dir = tempfile.mkdtemp()
yield Path(temp_dir)
- shutil.rmtree(temp_dir)
+ shutil.rmtree(temp_dir, ignore_errors=True)
@pytest.fixture
def app(self, temp_data_dir, monkeypatch):