From b67a4f80132d9d4c4d78a6dfdfc39b27fd879532 Mon Sep 17 00:00:00 2001 From: Amaan Ahmad <27350808+amaan-ahmad@users.noreply.github.com> Date: Sat, 7 Feb 2026 20:38:47 +0530 Subject: [PATCH] fix: remove trailing comma causing assertion to always pass in test_api_error The trailing comma turned the assert expression into a tuple, so the assertion was always true. Removed it so the comparison is actually checked. --- google/genai/tests/errors/test_api_error.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/genai/tests/errors/test_api_error.py b/google/genai/tests/errors/test_api_error.py index bc77b374e..cc0a4d778 100644 --- a/google/genai/tests/errors/test_api_error.py +++ b/google/genai/tests/errors/test_api_error.py @@ -269,7 +269,7 @@ def test_constructor_with_websocket_connection_closed_error(): assert ( actual_error.details == 'At most one response modality can be specified in the setup request.' - ' To enable simultaneous transcription and audio output,', + ' To enable simultaneous transcription and audio output,' ) assert actual_error.status == None assert actual_error.message == None