Merge "Lazy import is not needed"

This commit is contained in:
Zuul 2024-06-04 20:45:11 +00:00 committed by Gerrit Code Review
commit 1d5b1d746e

View File

@ -26,6 +26,7 @@ from test.probe.brain import BrainSplitter
from test.probe.common import ReplProbeTest, ENABLED_POLICIES
from boto3.s3.transfer import TransferConfig
from test.s3api import get_s3_client
import mock
@ -40,8 +41,6 @@ class TestMixedPolicyMPU(ReplProbeTest):
if not s3api_info:
raise unittest.SkipTest('s3api not enabled')
# lazy import boto only required if cluster supports s3api
from test.s3api import get_s3_client
self.s3 = get_s3_client(1)
self.bucket_name = 'bucket-%s' % uuid.uuid4()