feat: Add sqlite to blocking call detection (#4376)

This commit is contained in:
Christophe Bornet 2024-12-09 11:48:48 +01:00 • committed by GitHub
commit abf38e96e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 7 deletions

View file

@ -63,9 +63,6 @@ def blockbuster(request):
"io.TextIOWrapper.read",
]:
bb.functions[func].can_block_functions.append(("importlib_metadata/__init__.py", {"metadata"}))
for func in bb.functions:
if func.startswith("sqlite3."):
bb.functions[func].deactivate()
bb.functions["threading.Lock.acquire"].deactivate()
yield bb