Remove unnecessary code in test setUp/tearDown

Change-Id: I41c033dceafdf1ce39ff3dc11f11b54a909cec12
This commit is contained in:
Johannes Erdfelt
2012-03-04 23:43:37 +00:00
parent ec6cef74e8
commit b711f30d49

View File

@@ -2042,7 +2042,6 @@ class LibvirtConnectionTestCase(test.TestCase):
super(LibvirtConnectionTestCase, self).setUp()
self.libvirtconnection = connection.LibvirtConnection(read_only=True)
self.platform = sys.platform
self.temp_path = os.path.join(flags.FLAGS.instances_path,
'instance-00000001/', '')
@@ -2054,7 +2053,6 @@ class LibvirtConnectionTestCase(test.TestCase):
def tearDown(self):
super(LibvirtConnectionTestCase, self).tearDown()
sys.platform = self.platform
try:
shutil.rmtree(flags.FLAGS.instances_path)