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(tests): prevent temp dir cleanup race with open SQLite connections (#2460)

LearningCircuit096c3dbfe934
diff --git a/tests/conftest.py b/tests/conftest.py
index 981446ef90..1741660eb7 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -178,7 +178,10 @@ def temp_data_dir():
"""Create a temporary data directory for testing."""
temp_dir = tempfile.mkdtemp()
yield Path(temp_dir)
- shutil.rmtree(temp_dir)
+ # Use ignore_errors=True because SQLite WAL/SHM files may still be held
+ # open by database connections that are disposed later in teardown order
+ # (cleanup_database_connections autouse fixture runs after this fixture).
+ shutil.rmtree(temp_dir, ignore_errors=True)
@pytest.fixture(autouse=True)