Skip to content

Commit b61d928

Browse files
committed
Bump to new release 2.2.3
1 parent 4cc6b09 commit b61d928

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

minio/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
__title__ = 'minio-py'
3131
__author__ = 'Minio, Inc.'
32-
__version__ = '2.2.2'
32+
__version__ = '2.2.3'
3333
__license__ = 'Apache 2.0'
3434
__copyright__ = 'Copyright 2015, 2016, 2017 Minio, Inc.'
3535

tests/unit/minio_test.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from nose.tools import raises, eq_
2020

2121
from minio import Minio
22+
from minio import __version__ as minio_version
2223
from minio.api import _DEFAULT_USER_AGENT
2324
from minio.error import InvalidEndpointError, InvalidBucketError
2425
from minio.helpers import get_target_url, is_valid_bucket_name
@@ -88,14 +89,14 @@ def test_default_user_agent(self):
8889

8990
def test_set_app_info(self):
9091
client = Minio('localhost')
91-
expected_user_agent = _DEFAULT_USER_AGENT + ' hello/2.2.2'
92-
client.set_app_info('hello', '2.2.2')
92+
expected_user_agent = _DEFAULT_USER_AGENT + ' hello/' + minio_version
93+
client.set_app_info('hello', minio_version)
9394
eq_(client._user_agent, expected_user_agent)
9495

9596
@raises(ValueError)
9697
def test_set_app_info_requires_non_empty_name(self):
9798
client = Minio('localhost:9000')
98-
client.set_app_info('', '2.2.2')
99+
client.set_app_info('', minio_version)
99100

100101
@raises(ValueError)
101102
def test_set_app_info_requires_non_empty_version(self):

0 commit comments

Comments
 (0)