diff options
author | Jenkins <jenkins@review.openstack.org> | 2013-02-02 16:42:39 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-02-02 16:42:39 +0000 |
commit | 864e934cfa7003767dabb4f9a51ebe1e493f6027 (patch) | |
tree | 8fb49329d235b3dfb19701a36348f73877c096fc /tests/utils.py | |
parent | ea160989ad2708e59ec77ce855e51d118d5edfb6 (diff) | |
parent | dc99baa33648820b93c90c15bd3562284e8ce4a9 (diff) | |
download | oslo-864e934cfa7003767dabb4f9a51ebe1e493f6027.tar.gz oslo-864e934cfa7003767dabb4f9a51ebe1e493f6027.tar.xz oslo-864e934cfa7003767dabb4f9a51ebe1e493f6027.zip |
Merge "Add _FATAL_EXCEPTION_FORMAT_ERRORS global."
Diffstat (limited to 'tests/utils.py')
-rw-r--r-- | tests/utils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/utils.py b/tests/utils.py index f9854ca..2d681ae 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -24,6 +24,7 @@ import testtools from openstack.common import cfg from openstack.common.fixture import moxstubout +from openstack.common import exception CONF = cfg.CONF @@ -36,6 +37,13 @@ class BaseTestCase(testtools.TestCase): self.addCleanup(CONF.reset) self.useFixture(fixtures.FakeLogger('openstack.common')) self.useFixture(fixtures.Timeout(30, True)) + self.stubs.Set(exception, '_FATAL_EXCEPTION_FORMAT_ERRORS', True) + + def tearDown(self): + super(BaseTestCase, self).tearDown() + CONF.reset() + self.stubs.UnsetAll() + self.stubs.SmartUnsetAll() def config(self, **kw): """ |