Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-minio for openSUSE:Factory checked in at 2022-06-16 18:21:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-minio (Old) and /work/SRC/openSUSE:Factory/.python-minio.new.1548 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-minio" Thu Jun 16 18:21:07 2022 rev:14 rq:982983 version:7.1.9 Changes: -------- --- /work/SRC/openSUSE:Factory/python-minio/python-minio.changes 2022-03-28 17:01:56.841082362 +0200 +++ /work/SRC/openSUSE:Factory/.python-minio.new.1548/python-minio.changes 2022-06-16 18:22:26.680270454 +0200 @@ -1,0 +2,9 @@ +Wed Jun 15 14:27:53 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com> + +- version update to 7.1.9 + * allow hashlib.md5() calls to work with FIPS kernels by @BOPOHA in #1200 + * Handle 304 status code properly by @balamurugana in #1202 + * correct ValueError when part_size > MAX_PART_SIZE by @ernestang98 in #1205 + * Set minimum requirement to Python v3.7 by @balamurugana in #1209 + +------------------------------------------------------------------- Old: ---- minio-7.1.5.tar.gz New: ---- minio-7.1.9.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-minio.spec ++++++ --- /var/tmp/diff_new_pack.b2VxC8/_old 2022-06-16 18:22:27.040270966 +0200 +++ /var/tmp/diff_new_pack.b2VxC8/_new 2022-06-16 18:22:27.044270972 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-minio -Version: 7.1.5 +Version: 7.1.9 Release: 0 Summary: Minio library for Amazon S3 compatible cloud storage License: Apache-2.0 ++++++ minio-7.1.5.tar.gz -> minio-7.1.9.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/PKG-INFO new/minio-7.1.9/PKG-INFO --- old/minio-7.1.5/PKG-INFO 2022-03-11 04:28:56.537088000 +0100 +++ new/minio-7.1.9/PKG-INFO 2022-06-11 23:34:02.843320600 +0200 @@ -1,23 +1,22 @@ Metadata-Version: 2.1 Name: minio -Version: 7.1.5 +Version: 7.1.9 Summary: MinIO Python SDK for Amazon S3 Compatible Cloud Storage Home-page: https://github.com/minio/minio-py Download-URL: https://github.com/minio/minio-py/releases Author: MinIO, Inc. Author-email: d...@min.io License: Apache License 2.0 -Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: Apache Software License Classifier: Natural Language :: English Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python -Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 Classifier: Topic :: Software Development :: Libraries :: Python Modules Description-Content-Type: text/markdown License-File: LICENSE @@ -29,7 +28,7 @@ For a complete list of APIs and examples, please take a look at the [Python Client API Reference](https://docs.min.io/docs/python-client-api-reference) ## Minimum Requirements -Python 3.6 or higher. +Python 3.7 or higher. ## Download using pip @@ -118,5 +117,3 @@ Please refer [Contributors Guide](https://github.com/minio/minio-py/blob/release/CONTRIBUTING.md) [](https://pypi.python.org/pypi/minio) - - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/README.md new/minio-7.1.9/README.md --- old/minio-7.1.5/README.md 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/README.md 2022-06-11 23:29:34.000000000 +0200 @@ -5,7 +5,7 @@ For a complete list of APIs and examples, please take a look at the [Python Client API Reference](https://docs.min.io/docs/python-client-api-reference) ## Minimum Requirements -Python 3.6 or higher. +Python 3.7 or higher. ## Download using pip diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/minio/__init__.py new/minio-7.1.9/minio/__init__.py --- old/minio-7.1.5/minio/__init__.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/minio/__init__.py 2022-06-11 23:29:34.000000000 +0200 @@ -33,7 +33,7 @@ __title__ = "minio-py" __author__ = "MinIO, Inc." -__version__ = "7.1.5" +__version__ = "7.1.9" __license__ = "Apache 2.0" __copyright__ = "Copyright 2015, 2016, 2017, 2018, 2019, 2020 MinIO, Inc." diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/minio/api.py new/minio-7.1.9/minio/api.py --- old/minio-7.1.5/minio/api.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/minio/api.py 2022-06-11 23:29:34.000000000 +0200 @@ -303,6 +303,11 @@ ): if self._trace_stream: self._trace_stream.write("----------END-HTTP----------\n") + if response.status == 304 and not response.data: + raise ServerError( + f"server failed with HTTP status code {response.status}", + response.status, + ) raise InvalidResponseError( response.status, response.getheader("content-type"), @@ -361,7 +366,8 @@ code, message = func() if func else (None, None) if not code: raise ServerError( - f"server failed with HTTP status code {response.status}" + f"server failed with HTTP status code {response.status}", + response.status, ) response_error = S3Error( code, @@ -2479,7 +2485,7 @@ check_bucket_name(bucket_name) check_non_empty_string(object_name) body = marshal(LegalHold(True)) - query_params = {"versionId", version_id} if version_id else {} + query_params = {"versionId": version_id} if version_id else {} query_params["legal-hold"] = "" self._execute( "PUT", @@ -2506,7 +2512,7 @@ check_bucket_name(bucket_name) check_non_empty_string(object_name) body = marshal(LegalHold(False)) - query_params = {"versionId", version_id} if version_id else {} + query_params = {"versionId": version_id} if version_id else {} query_params["legal-hold"] = "" self._execute( "PUT", @@ -2535,7 +2541,7 @@ """ check_bucket_name(bucket_name) check_non_empty_string(object_name) - query_params = {"versionId", version_id} if version_id else {} + query_params = {"versionId": version_id} if version_id else {} query_params["legal-hold"] = "" try: response = self._execute( @@ -2619,7 +2625,7 @@ """ check_bucket_name(bucket_name) check_non_empty_string(object_name) - query_params = {"versionId", version_id} if version_id else {} + query_params = {"versionId": version_id} if version_id else {} query_params["retention"] = "" try: response = self._execute( @@ -2656,7 +2662,7 @@ if not isinstance(config, Retention): raise ValueError("config must be Retention type") body = marshal(config) - query_params = {"versionId", version_id} if version_id else {} + query_params = {"versionId": version_id} if version_id else {} query_params["retention"] = "" self._execute( "PUT", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/minio/datatypes.py new/minio-7.1.9/minio/datatypes.py --- old/minio-7.1.5/minio/datatypes.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/minio/datatypes.py 2022-06-11 23:29:34.000000000 +0200 @@ -811,7 +811,6 @@ def __init__(self, func): self._func = func self._response = None - self._stream = None def _close_response(self): """Close response.""" @@ -826,7 +825,7 @@ def _get_records(self): """Get event records from response stream.""" try: - line = self._stream.__next__().strip() + line = self._response.readline().strip() if not line: return None if hasattr(line, 'decode'): @@ -843,7 +842,6 @@ while not records: if not self._response: self._response = self._func() - self._stream = self._response.stream() records = self._get_records() return records diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/minio/deleteobjects.py new/minio-7.1.9/minio/deleteobjects.py --- old/minio-7.1.5/minio/deleteobjects.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/minio/deleteobjects.py 2022-06-11 23:29:34.000000000 +0200 @@ -48,7 +48,7 @@ """Convert to XML.""" element = Element("Delete") if self._quiet: - SubElement(element, "Quiet", str(self._quiet)) + SubElement(element, "Quiet", "true") for obj in self._object_list: obj.toxml(element) return element diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/minio/error.py new/minio-7.1.9/minio/error.py --- old/minio-7.1.5/minio/error.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/minio/error.py 2022-06-11 23:29:34.000000000 +0200 @@ -49,10 +49,22 @@ f"Response code: {code}, Content-Type: {content_type}, Body: {body}" ) + def __reduce__(self): + return type(self), (self._code, self._content_type, self._body) + class ServerError(MinioException): """Raised to indicate that S3 service returning HTTP server error.""" + def __init__(self, message, status_code): + self._status_code = status_code + super().__init__(message) + + @property + def status_code(self): + """Get HTTP status code.""" + return self._status_code + class S3Error(MinioException): """ @@ -85,6 +97,11 @@ f"host_id: {host_id}{bucket_message}{object_message}" ) + def __reduce__(self): + return type(self), (self._code, self._message, self._resource, + self._request_id, self._host_id, self._response, + self._bucket_name, self._object_name) + @property def code(self): """Get S3 error code.""" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/minio/helpers.py new/minio-7.1.9/minio/helpers.py --- old/minio-7.1.5/minio/helpers.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/minio/helpers.py 2022-06-11 23:29:34.000000000 +0200 @@ -102,7 +102,7 @@ ) if part_size > MAX_PART_SIZE: raise ValueError( - f"part size {part_size} is not supported; minimum allowed 5GiB", + f"part size {part_size} is not supported; maximum allowed 5GiB", ) if object_size >= 0: @@ -255,7 +255,9 @@ if data is None: return None - hasher = hashlib.md5() + # indicate md5 hashing algorithm is not used in a security context. + # Refer https://bugs.python.org/issue9216 for more information. + hasher = hashlib.new("md5", usedforsecurity=False) hasher.update(data.encode() if isinstance(data, str) else data) md5sum = base64.b64encode(hasher.digest()) return md5sum.decode() if isinstance(md5sum, bytes) else md5sum diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/minio/lifecycleconfig.py new/minio-7.1.9/minio/lifecycleconfig.py --- old/minio-7.1.5/minio/lifecycleconfig.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/minio/lifecycleconfig.py 2022-06-11 23:29:34.000000000 +0200 @@ -200,7 +200,7 @@ SubElement( element, "ExpiredObjectDeleteMarker", - str(self._expired_object_delete_marker), + str(self._expired_object_delete_marker).lower(), ) return element diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/minio/sse.py new/minio-7.1.9/minio/sse.py --- old/minio-7.1.5/minio/sse.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/minio/sse.py 2022-06-11 23:29:34.000000000 +0200 @@ -25,7 +25,6 @@ """ import base64 -import hashlib import json from abc import ABCMeta, abstractmethod @@ -56,9 +55,9 @@ "SSE-C keys need to be 256 bit base64 encoded", ) b64key = base64.b64encode(key).decode() - md5 = hashlib.md5() - md5.update(key) - md5key = base64.b64encode(md5.digest()).decode() + from .helpers import \ + md5sum_hash # pylint: disable=import-outside-toplevel + md5key = md5sum_hash(key) self._headers = { "X-Amz-Server-Side-Encryption-Customer-Algorithm": "AES256", "X-Amz-Server-Side-Encryption-Customer-Key": b64key, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/minio.egg-info/PKG-INFO new/minio-7.1.9/minio.egg-info/PKG-INFO --- old/minio-7.1.5/minio.egg-info/PKG-INFO 2022-03-11 04:28:55.000000000 +0100 +++ new/minio-7.1.9/minio.egg-info/PKG-INFO 2022-06-11 23:33:59.000000000 +0200 @@ -1,23 +1,22 @@ Metadata-Version: 2.1 Name: minio -Version: 7.1.5 +Version: 7.1.9 Summary: MinIO Python SDK for Amazon S3 Compatible Cloud Storage Home-page: https://github.com/minio/minio-py Download-URL: https://github.com/minio/minio-py/releases Author: MinIO, Inc. Author-email: d...@min.io License: Apache License 2.0 -Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: Apache Software License Classifier: Natural Language :: English Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python -Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 Classifier: Topic :: Software Development :: Libraries :: Python Modules Description-Content-Type: text/markdown License-File: LICENSE @@ -29,7 +28,7 @@ For a complete list of APIs and examples, please take a look at the [Python Client API Reference](https://docs.min.io/docs/python-client-api-reference) ## Minimum Requirements -Python 3.6 or higher. +Python 3.7 or higher. ## Download using pip @@ -118,5 +117,3 @@ Please refer [Contributors Guide](https://github.com/minio/minio-py/blob/release/CONTRIBUTING.md) [](https://pypi.python.org/pypi/minio) - - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/setup.py new/minio-7.1.9/setup.py --- old/minio-7.1.5/setup.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/setup.py 2022-06-11 23:29:34.000000000 +0200 @@ -44,7 +44,7 @@ package_dir={"minio": "minio"}, packages=["minio", "minio.credentials"], install_requires=["certifi", "urllib3"], - tests_require=["mock"], + tests_require=[], license="Apache License 2.0", classifiers=[ "Development Status :: 5 - Production/Stable", @@ -53,10 +53,10 @@ "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Topic :: Software Development :: Libraries :: Python Modules", ], long_description=readme, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/tests/unit/bucket_exist_test.py new/minio-7.1.9/tests/unit/bucket_exist_test.py --- old/minio-7.1.5/tests/unit/bucket_exist_test.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/tests/unit/bucket_exist_test.py 2022-06-11 23:29:34.000000000 +0200 @@ -14,10 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +import unittest.mock as mock from unittest import TestCase -import mock - from minio import Minio from minio.api import _DEFAULT_USER_AGENT from minio.error import S3Error diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/tests/unit/credentials_test.py new/minio-7.1.9/tests/unit/credentials_test.py --- old/minio-7.1.5/tests/unit/credentials_test.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/tests/unit/credentials_test.py 2022-06-11 23:29:34.000000000 +0200 @@ -16,11 +16,10 @@ import json import os +import unittest.mock as mock from datetime import datetime, timedelta from unittest import TestCase -import mock - from minio.credentials.credentials import Credentials from minio.credentials.providers import (AWSConfigProvider, ChainedProvider, EnvAWSProvider, EnvMinioProvider, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/tests/unit/get_bucket_policy_test.py new/minio-7.1.9/tests/unit/get_bucket_policy_test.py --- old/minio-7.1.5/tests/unit/get_bucket_policy_test.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/tests/unit/get_bucket_policy_test.py 2022-06-11 23:29:34.000000000 +0200 @@ -16,10 +16,9 @@ import json +import unittest.mock as mock from unittest import TestCase -import mock - from minio import Minio from minio.api import _DEFAULT_USER_AGENT from minio.error import S3Error diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/tests/unit/get_object_test.py new/minio-7.1.9/tests/unit/get_object_test.py --- old/minio-7.1.5/tests/unit/get_object_test.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/tests/unit/get_object_test.py 2022-06-11 23:29:34.000000000 +0200 @@ -14,10 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +import unittest.mock as mock from unittest import TestCase -import mock - from minio import Minio from minio.api import _DEFAULT_USER_AGENT from minio.error import S3Error diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/tests/unit/list_buckets_test.py new/minio-7.1.9/tests/unit/list_buckets_test.py --- old/minio-7.1.5/tests/unit/list_buckets_test.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/tests/unit/list_buckets_test.py 2022-06-11 23:29:34.000000000 +0200 @@ -14,11 +14,10 @@ # See the License for the specific language governing permissions and # limitations under the License. +import unittest.mock as mock from datetime import datetime, timezone from unittest import TestCase -import mock - from minio import Minio from minio.api import _DEFAULT_USER_AGENT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/tests/unit/list_objects_test.py new/minio-7.1.9/tests/unit/list_objects_test.py --- old/minio-7.1.5/tests/unit/list_objects_test.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/tests/unit/list_objects_test.py 2022-06-11 23:29:34.000000000 +0200 @@ -15,10 +15,9 @@ # limitations under the License. import time +import unittest.mock as mock from unittest import TestCase -import mock - from minio import Minio from minio.api import _DEFAULT_USER_AGENT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/tests/unit/list_objects_v1_test.py new/minio-7.1.9/tests/unit/list_objects_v1_test.py --- old/minio-7.1.5/tests/unit/list_objects_v1_test.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/tests/unit/list_objects_v1_test.py 2022-06-11 23:29:34.000000000 +0200 @@ -15,10 +15,9 @@ # limitations under the License. import time +import unittest.mock as mock from unittest import TestCase -import mock - from minio import Minio from minio.api import _DEFAULT_USER_AGENT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/tests/unit/make_bucket_test.py new/minio-7.1.9/tests/unit/make_bucket_test.py --- old/minio-7.1.5/tests/unit/make_bucket_test.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/tests/unit/make_bucket_test.py 2022-06-11 23:29:34.000000000 +0200 @@ -14,10 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +import unittest.mock as mock from unittest import TestCase -import mock - from minio import Minio from minio.api import _DEFAULT_USER_AGENT from minio.error import S3Error diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/tests/unit/presigned_get_object_test.py new/minio-7.1.9/tests/unit/presigned_get_object_test.py --- old/minio-7.1.5/tests/unit/presigned_get_object_test.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/tests/unit/presigned_get_object_test.py 2022-06-11 23:29:34.000000000 +0200 @@ -14,11 +14,10 @@ # See the License for the specific language governing permissions and # limitations under the License. +import unittest.mock as mock from datetime import timedelta from unittest import TestCase -import mock - from minio import Minio diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/tests/unit/remove_bucket_test.py new/minio-7.1.9/tests/unit/remove_bucket_test.py --- old/minio-7.1.5/tests/unit/remove_bucket_test.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/tests/unit/remove_bucket_test.py 2022-06-11 23:29:34.000000000 +0200 @@ -14,10 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +import unittest.mock as mock from unittest import TestCase -import mock - from minio import Minio from minio.api import _DEFAULT_USER_AGENT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/tests/unit/remove_object_test.py new/minio-7.1.9/tests/unit/remove_object_test.py --- old/minio-7.1.5/tests/unit/remove_object_test.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/tests/unit/remove_object_test.py 2022-06-11 23:29:34.000000000 +0200 @@ -14,10 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +import unittest.mock as mock from unittest import TestCase -import mock - from minio import Minio from minio.api import _DEFAULT_USER_AGENT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/tests/unit/remove_objects_test.py new/minio-7.1.9/tests/unit/remove_objects_test.py --- old/minio-7.1.5/tests/unit/remove_objects_test.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/tests/unit/remove_objects_test.py 2022-06-11 23:29:34.000000000 +0200 @@ -15,10 +15,9 @@ # limitations under the License. import itertools +import unittest.mock as mock from unittest import TestCase -import mock - from minio import Minio from minio.api import _DEFAULT_USER_AGENT from minio.deleteobjects import DeleteObject @@ -35,7 +34,7 @@ MockResponse('POST', 'https://localhost:9000/hello?delete=', {'User-Agent': _DEFAULT_USER_AGENT, - 'Content-Md5': u'YcTFWle4oiLJ6sT95FwpdA=='}, 200, + 'Content-Md5': u'Te1kmIjQRNNz70DJjsrD8A=='}, 200, content=b'<Delete/>') ) client = Minio('localhost:9000') @@ -53,7 +52,7 @@ MockResponse('POST', 'https://localhost:9000/hello?delete=', {'User-Agent': _DEFAULT_USER_AGENT, - 'Content-Md5': u'YcTFWle4oiLJ6sT95FwpdA=='}, 200, + 'Content-Md5': u'Te1kmIjQRNNz70DJjsrD8A=='}, 200, content=b'<Delete/>') ) client = Minio('localhost:9000') @@ -71,7 +70,7 @@ MockResponse('POST', 'https://localhost:9000/hello?delete=', {'User-Agent': _DEFAULT_USER_AGENT, - 'Content-Md5': u'YcTFWle4oiLJ6sT95FwpdA=='}, 200, + 'Content-Md5': u'Te1kmIjQRNNz70DJjsrD8A=='}, 200, content=b'<Delete/>') ) client = Minio('localhost:9000') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.5/tests/unit/stat_object_test.py new/minio-7.1.9/tests/unit/stat_object_test.py --- old/minio-7.1.5/tests/unit/stat_object_test.py 2022-03-11 04:27:21.000000000 +0100 +++ new/minio-7.1.9/tests/unit/stat_object_test.py 2022-06-11 23:29:34.000000000 +0200 @@ -14,10 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +import unittest.mock as mock from unittest import TestCase -import mock - from minio import Minio from minio.api import _DEFAULT_USER_AGENT