python3: Do not pass MagicMock as ConfigOpts

Doing so causes a eventlet.sleep(MagicMock()) call, which results
in comparing MagicMock with float and generates a TypeError in python3.

Change-Id: I970c215433fda05fa4570b2250a36aab4c18c616
changes/21/472121/5
IWAMOTO Toshihiro 6 years ago
parent 044a06383b
commit 1c6b51259c

@ -14,6 +14,7 @@
# under the License.
import mock
from oslo_config import cfg
from oslo_utils import uuidutils
from neutron.agent.l3 import dvr_snat_ns
@ -29,7 +30,7 @@ class NamespaceManagerTestFramework(base.BaseSudoTestCase):
def setUp(self):
super(NamespaceManagerTestFramework, self).setUp()
self.agent_conf = mock.MagicMock()
self.agent_conf = cfg.CONF
self.metadata_driver_mock = mock.Mock()
self.namespace_manager = namespace_manager.NamespaceManager(
self.agent_conf, driver=None,

Loading…
Cancel
Save