summaryrefslogtreecommitdiffstats
path: root/test/units/plugins/action/test_action.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/units/plugins/action/test_action.py')
-rw-r--r--test/units/plugins/action/test_action.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/units/plugins/action/test_action.py b/test/units/plugins/action/test_action.py
index 5f3acf2c95..7d9c2915dd 100644
--- a/test/units/plugins/action/test_action.py
+++ b/test/units/plugins/action/test_action.py
@@ -27,8 +27,8 @@ import unittest
from unittest.mock import patch, MagicMock, mock_open
from ansible.errors import AnsibleError, AnsibleAuthenticationFailure
-from ansible.module_utils.six import text_type
-from ansible.module_utils.six.moves import shlex_quote, builtins
+import builtins
+import shlex
from ansible.module_utils.common.text.converters import to_bytes
from ansible.playbook.play_context import PlayContext
from ansible.plugins.action import ActionBase
@@ -195,7 +195,7 @@ class TestActionBase(unittest.TestCase):
# create a mock connection, so we don't actually try and connect to things
def env_prefix(**args):
- return ' '.join(['%s=%s' % (k, shlex_quote(text_type(v))) for k, v in args.items()])
+ return ' '.join(['%s=%s' % (k, shlex.quote(str(v))) for k, v in args.items()])
mock_connection = MagicMock()
mock_connection._shell.env_prefix.side_effect = env_prefix