diff --git a/django/aiservice/tests/log_features/test_log_features_concurrency.py b/django/aiservice/tests/log_features/test_log_features_concurrency.py index 9cf67829d..f62931fd1 100644 --- a/django/aiservice/tests/log_features/test_log_features_concurrency.py +++ b/django/aiservice/tests/log_features/test_log_features_concurrency.py @@ -16,7 +16,7 @@ import inspect from pathlib import Path -def test_log_features_uses_thread_sensitive_true(): +def test_log_features_uses_thread_sensitive_true() -> None: """Test that log_features uses thread_sensitive=True to prevent pool exhaustion. This test verifies that the @sync_to_async decorator on log_features @@ -78,7 +78,7 @@ def test_log_features_uses_thread_sensitive_true(): # Verify thread_sensitive=True (not False) if isinstance(thread_sensitive_arg, ast.Constant): assert thread_sensitive_arg.value is True, ( - f"thread_sensitive should be True, got {thread_sensitive_arg.value}. " + f"thread_sensitive should be True, got {thread_sensitive_arg.value!r}. " "This causes PostgreSQL connection pool exhaustion!" ) else: