From 334bc84483781acd7fc4ed6ebdd6732679e49667 Mon Sep 17 00:00:00 2001 From: Irena Berezovsky Date: Sun, 2 Mar 2014 08:52:56 +0200 Subject: [PATCH] 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 --- neutron/tests/unit/mlnx/test_mlnx_neutron_agent.py | 1 - 1 file changed, 1 deletion(-) 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', -- 2.45.2