summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2018-10-08 16:43:16 -0700
committerMatt Clay <matt@mystile.com>2018-10-16 16:04:13 -0700
commit115b919cfd2d52f77482be45c7fabeb13341aa20 (patch)
tree90f4b69e8192904ccc509e5d2e38b88362752f3d
parenteb6a2408db26b70f5f5299460a5fc57dae4896f1 (diff)
downloadansible-115b919cfd2d52f77482be45c7fabeb13341aa20.tar.gz
[stable-2.6] Mocking out __future__ could cause problems
(cherry picked from commit 473f70c) Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
-rw-r--r--test/units/modules/remote_management/oneview/oneview_module_loader.py4
1 files 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,