summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIonuț Arțăriși <iartarisi@suse.cz>2013-01-09 17:57:15 +0100
committerIonuț Arțăriși <iartarisi@suse.cz>2013-01-09 18:01:52 +0100
commitf9bfc241bd8d6d5ba493e92d35f7c2ee4d265776 (patch)
treeb60ba3c6f34927d8f1ceda66e713af12f6cd4639
parent8b83990c12e4dc03aa599dd5e68ce91a9cab4eb7 (diff)
downloadnova-f9bfc241bd8d6d5ba493e92d35f7c2ee4d265776.tar.gz
nova-f9bfc241bd8d6d5ba493e92d35f7c2ee4d265776.tar.xz
nova-f9bfc241bd8d6d5ba493e92d35f7c2ee4d265776.zip
don't clear the database dicts in the tearDown method
This is superfluous as the two dicts (self.engines and self.test_databases) are re-initialised during setUp anyway and aren't used in between Change-Id: Icafa9bdf3b0193f31752e6104ecac0e49476c812
-rw-r--r--nova/tests/test_migrations.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/nova/tests/test_migrations.py b/nova/tests/test_migrations.py
index 9badfb61a..5b13ecac8 100644
--- a/nova/tests/test_migrations.py
+++ b/nova/tests/test_migrations.py
@@ -121,17 +121,10 @@ class TestMigrations(test.TestCase):
self._reset_databases()
def tearDown(self):
-
# We destroy the test data store between each test case,
# and recreate it, which ensures that we have no side-effects
# from the tests
self._reset_databases()
-
- # remove these from the list so they aren't used in the migration tests
- if "mysqlcitest" in self.engines:
- del self.engines["mysqlcitest"]
- if "mysqlcitest" in self.test_databases:
- del self.test_databases["mysqlcitest"]
super(TestMigrations, self).tearDown()
def _reset_databases(self):