From 66acf7567a00559c42663f0b68ea9a802f2cbe0e Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Tue, 4 Jul 2023 10:03:31 +0200 Subject: [PATCH] Fix test failures with Python 3.12 --- tests/unit/test_client.py | 2 +- tests/unit/test_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_client.py b/tests/unit/test_client.py index eb7a307..6bc2f16 100644 --- a/tests/unit/test_client.py +++ b/tests/unit/test_client.py @@ -1229,7 +1229,7 @@ class TestAutoGeneratedClient(unittest.TestCase): ' :type Bar: string', ' :param Bar: Documents Bar', ' :type PaginationConfig: dict', - ' :param PaginationConfig: ', + ' :param PaginationConfig:', ( ' A dictionary that provides parameters to control ' 'pagination.' diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 6b1a33b..277caf1 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -1124,7 +1124,7 @@ class TestSwitchToChunkedEncodingForNonSeekableObjects(unittest.TestCase): request = AWSRequest( method='POST', headers={}, - data=io.BufferedIOBase(b"some initial binary data"), + data=io.BufferedIOBase(), url='https://foo.amazonaws.com/bucket/key.txt', ) prepared_request = request.prepare() -- 2.41.0