From 473f70c21a7229f8bbc949159392c48699ab3cfa Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 8 Oct 2018 16:43:16 -0700 Subject: [PATCH] Mocking out __future__ could cause problems --- .../remote_management/oneview/oneview_module_loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/units/modules/remote_management/oneview/oneview_module_loader.py b/test/units/modules/remote_management/oneview/oneview_module_loader.py index 9610e10842..b1c43f484f 100644 --- a/test/units/modules/remote_management/oneview/oneview_module_loader.py +++ b/test/units/modules/remote_management/oneview/oneview_module_loader.py @@ -4,10 +4,10 @@ import sys from ansible.compat.tests.mock import patch, Mock +# FIXME: These should be done inside of a fixture so that they're only mocked during +# these unittests sys.modules['hpOneView'] = Mock() sys.modules['hpOneView.oneview_client'] = Mock() -sys.modules['future'] = Mock() -sys.modules['__future__'] = Mock() ONEVIEW_MODULE_UTILS_PATH = 'ansible.module_utils.oneview' from ansible.module_utils.oneview import (OneViewModuleException,