From 5744042955b47d47520a7c56dcb0ebc767eb6f11 Mon Sep 17 00:00:00 2001 From: libertyzhu Date: Thu, 23 May 2024 15:19:11 +0800 Subject: [PATCH 1/2] fix ut: list_buckets timeout --- ut/test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ut/test.py b/ut/test.py index f085e0d..8f65507 100644 --- a/ut/test.py +++ b/ut/test.py @@ -779,7 +779,10 @@ def test_get_service(): from datetime import datetime marker = "" list_over = False + max_count = 3000 while list_over is False: + if max_count <= 0: + break create_time = 1514736000 response = client.list_buckets( Region='ap-beijing', CreateTime=create_time, Range='gt', Marker=marker) @@ -788,6 +791,7 @@ def test_get_service(): bucket['CreationDate'], '%Y-%m-%dT%H:%M:%SZ').timetuple())) assert ctime > create_time assert bucket['Location'] == 'ap-beijing' + max_count -= 1 marker = response['Marker'] if response['IsTruncated'] == 'false': From 3cbc14a6c158787499f188528d536c5b308a7dda Mon Sep 17 00:00:00 2001 From: libertyzhu Date: Thu, 23 May 2024 17:35:46 +0800 Subject: [PATCH 2/2] =?UTF-8?q?1.9.29=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qcloud_cos/version.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcloud_cos/version.py b/qcloud_cos/version.py index 47b5ac9..90a3db4 100644 --- a/qcloud_cos/version.py +++ b/qcloud_cos/version.py @@ -1 +1 @@ -__version__ = '5.1.9.28' +__version__ = '5.1.9.29' diff --git a/setup.py b/setup.py index 2bfb86c..116a298 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ def long_description(): setup( name='cos-python-sdk-v5', - version='1.9.28', + version='1.9.29', url='https://www.qcloud.com/', license='MIT', author='tiedu, lewzylu, channingliu',