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', 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':