Merge "Lazy import is not needed"
This commit is contained in:
commit
1d5b1d746e
@ -26,6 +26,7 @@ from test.probe.brain import BrainSplitter
|
|||||||
from test.probe.common import ReplProbeTest, ENABLED_POLICIES
|
from test.probe.common import ReplProbeTest, ENABLED_POLICIES
|
||||||
|
|
||||||
from boto3.s3.transfer import TransferConfig
|
from boto3.s3.transfer import TransferConfig
|
||||||
|
from test.s3api import get_s3_client
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
|
||||||
@ -40,8 +41,6 @@ class TestMixedPolicyMPU(ReplProbeTest):
|
|||||||
if not s3api_info:
|
if not s3api_info:
|
||||||
raise unittest.SkipTest('s3api not enabled')
|
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.s3 = get_s3_client(1)
|
||||||
|
|
||||||
self.bucket_name = 'bucket-%s' % uuid.uuid4()
|
self.bucket_name = 'bucket-%s' % uuid.uuid4()
|
||||||
|
Loading…
Reference in New Issue
Block a user