]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Remove call to addCleanup(cfg.CONF.reset)
authorIrena Berezovsky <irenab@mellanox.com>
Sun, 2 Mar 2014 06:52:56 +0000 (08:52 +0200)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:39 +0000 (15:20 +0800)
The addCleanup(cfg.CONF.reset) is done by base class,
therefore no need to invoke it from mlnx agent unit test setUp method.

Change-Id: Ie7e55d92e63a28699d8fec7c63951449eb7c0a50
Closes-Bug: 1286716

neutron/tests/unit/mlnx/test_mlnx_neutron_agent.py

index fb5bbbdb7c715f9ad4d1b88a62fe9e9d20cdfdbd..79b4f56b464515fd752f684cf66ae045e21cb8f5 100644 (file)
@@ -29,7 +29,6 @@ class TestEswitchAgent(base.BaseTestCase):
 
     def setUp(self):
         super(TestEswitchAgent, self).setUp()
-        self.addCleanup(cfg.CONF.reset)
         self.addCleanup(mock.patch.stopall)
         # Avoid rpc initialization for unit tests
         cfg.CONF.set_override('rpc_backend',