summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYummyBian <yummy.bian@gmail.com>2014-09-27 23:49:38 +0800
committerAlistair Coles <alistair.coles@hp.com>2014-10-01 11:02:48 +0000
commit64aa8062bc96799993deafbdf184adb72c509f20 (patch)
tree7169a22749c5a291a34e9cc0443780aad708b2de
parent0d502de2f5362590e79fd0b2b3db013c6100427a (diff)
downloadswift-64aa8062bc96799993deafbdf184adb72c509f20.tar.gz
Some statements are evaluated twice in the setUp of the
TestObjectReplicator Remove the duplicated statements. Closes-Bug: #1374783 Change-Id: If2b55e864fea497d7a7b218adf11eb7749c27765
-rw-r--r--test/unit/obj/test_replicator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/obj/test_replicator.py b/test/unit/obj/test_replicator.py
index 74c1c910a..c1497e6a9 100644
--- a/test/unit/obj/test_replicator.py
+++ b/test/unit/obj/test_replicator.py
@@ -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',