Some statements are evaluated twice in the setUp of the

TestObjectReplicator

Remove the duplicated statements.

Closes-Bug: #1374783

Change-Id: If2b55e864fea497d7a7b218adf11eb7749c27765
This commit is contained in:
YummyBian 2014-09-27 23:49:38 +08:00 committed by Alistair Coles
parent 0d502de2f5
commit 64aa8062bc
1 changed files with 2 additions and 2 deletions

View File

@ -162,9 +162,9 @@ class TestObjectReplicator(unittest.TestCase):
self.parts_1 = {}
for part in ['0', '1', '2', '3']:
self.parts[part] = os.path.join(self.objects, part)
os.mkdir(os.path.join(self.objects, part))
os.mkdir(self.parts[part])
self.parts_1[part] = os.path.join(self.objects_1, part)
os.mkdir(os.path.join(self.objects_1, part))
os.mkdir(self.parts_1[part])
_create_test_rings(self.testdir)
self.conf = dict(
swift_dir=self.testdir, devices=self.devices, mount_check='false',