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
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user