From: Irena Berezovsky Date: Sun, 2 Mar 2014 06:52:56 +0000 (+0200) Subject: Remove call to addCleanup(cfg.CONF.reset) X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=334bc84483781acd7fc4ed6ebdd6732679e49667;p=openstack-build%2Fneutron-build.git Remove call to addCleanup(cfg.CONF.reset) 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 --- diff --git a/neutron/tests/unit/mlnx/test_mlnx_neutron_agent.py b/neutron/tests/unit/mlnx/test_mlnx_neutron_agent.py index fb5bbbdb7..79b4f56b4 100644 --- a/neutron/tests/unit/mlnx/test_mlnx_neutron_agent.py +++ b/neutron/tests/unit/mlnx/test_mlnx_neutron_agent.py @@ -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',