Stop using tearDown.

TestCase.tearDown doesn't get called if setUp fails, it should never
be used.

Change-Id: Ib960c3f9610d8d8a0624e0c0709afa819e1858ad
This commit is contained in:
Robert Collins 2013-08-16 11:58:35 +12:00
parent 1897ecf001
commit f20f9954db

View File

@ -46,10 +46,7 @@ class TestCollect(testtools.TestCase):
def setUp(self):
super(TestCollect, self).setUp()
self.useFixture(fixtures.FakeLogger())
def tearDown(self):
super(TestCollect, self).tearDown()
cfg.CONF.reset()
self.addCleanup(cfg.CONF.reset)
def _call_main(self, fake_args):
# make sure we don't run forever!