summaryrefslogtreecommitdiffstats
path: root/test/units/modules/test_hostname.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/units/modules/test_hostname.py')
-rw-r--r--test/units/modules/test_hostname.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/test/units/modules/test_hostname.py b/test/units/modules/test_hostname.py
index ff5f789aa2..20b8336597 100644
--- a/test/units/modules/test_hostname.py
+++ b/test/units/modules/test_hostname.py
@@ -8,7 +8,6 @@ from unittest.mock import patch, MagicMock, mock_open
from ansible.module_utils.common._utils import get_all_subclasses
from ansible.modules import hostname
from units.modules.utils import ModuleTestCase, set_module_args
-from ansible.module_utils.six import PY2
class TestHostname(ModuleTestCase):
@@ -27,8 +26,6 @@ class TestHostname(ModuleTestCase):
m = mock_open()
builtins = 'builtins'
- if PY2:
- builtins = '__builtin__'
with patch('%s.open' % builtins, m):
instance.get_permanent_hostname()
instance.get_current_hostname()