From 0506e68e36fd6bfe3862ec1192166f3dd85fd76b Mon Sep 17 00:00:00 2001 From: ryan-crabbe-berri Date: Tue, 20 Oct 2026 11:40:45 -0700 Subject: [PATCH] test(bedrock): use single quotes inside the batch-line f-strings so the file parses on Python 3.10 and 3.11 --- .../llms/bedrock/files/test_bedrock_files_transformation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/llms/bedrock/files/test_bedrock_files_transformation.py b/tests/unit/llms/bedrock/files/test_bedrock_files_transformation.py index 5661af5793c..7e05ef500f5 100644 --- a/tests/unit/llms/bedrock/files/test_bedrock_files_transformation.py +++ b/tests/unit/llms/bedrock/files/test_bedrock_files_transformation.py @@ -4488,17 +4488,17 @@ def _batch_line_with_body(field: str, value: object) -> str: id="string-body", ), pytest.param( - f"{_batch_line_with_body("model", 123)}\n".encode(), + f"{_batch_line_with_body('model', 123)}\n".encode(), "Batch input file line 1 has a body.model that is not a string", id="int-model", ), pytest.param( - f"{_batch_line_with_body("model", None)}\n".encode(), + f"{_batch_line_with_body('model', None)}\n".encode(), "Batch input file line 1 has a body.model that is not a string", id="null-model", ), pytest.param( - f"{_VALID_BATCH_LINE}\n{_batch_line_with_body("messages", "hi")}\n".encode(), + f"{_VALID_BATCH_LINE}\n{_batch_line_with_body('messages', 'hi')}\n".encode(), "Batch input file line 2 could not be converted to a Bedrock batch record", id="string-messages", ),