diff --git a/test/units/module_utils/hwc/test_dict_comparison.py b/test/units/module_utils/hwc/test_dict_comparison.py
index c06f9e985cf..e7872d58781 100644
--- a/test/units/module_utils/hwc/test_dict_comparison.py
+++ b/test/units/module_utils/hwc/test_dict_comparison.py
@@ -17,8 +17,6 @@
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see .
-import os
-import sys
from units.compat import unittest
from ansible.module_utils.hwc_utils import are_different_dicts
diff --git a/test/units/module_utils/urls/test_Request.py b/test/units/module_utils/urls/test_Request.py
index 14222310223..c33f605e2d0 100644
--- a/test/units/module_utils/urls/test_Request.py
+++ b/test/units/module_utils/urls/test_Request.py
@@ -8,7 +8,7 @@ __metaclass__ = type
import datetime
import os
-from ansible.module_utils.urls import (Request, open_url, urllib_request, HAS_SSLCONTEXT, cookiejar, ConnectionError, RequestWithMethod,
+from ansible.module_utils.urls import (Request, open_url, urllib_request, HAS_SSLCONTEXT, cookiejar, RequestWithMethod,
UnixHTTPHandler, UnixHTTPSConnection, httplib)
from ansible.module_utils.urls import SSLValidationHandler, HTTPSClientAuthHandler, RedirectHandlerFactory
diff --git a/test/units/module_utils/xenserver/test_misc.py b/test/units/module_utils/xenserver/test_misc.py
index 2ac7a5f41e1..b6a0312a04d 100644
--- a/test/units/module_utils/xenserver/test_misc.py
+++ b/test/units/module_utils/xenserver/test_misc.py
@@ -7,8 +7,6 @@ from __future__ import absolute_import, division, print_function
__metaclass__ = type
-import pytest
-
from .FakeAnsibleModule import FakeAnsibleModule, ExitJsonException, FailJsonException
diff --git a/test/units/modules/cloud/amazon/test_ec2_group.py b/test/units/modules/cloud/amazon/test_ec2_group.py
index 9fee943e9e8..a857cd6fb8e 100644
--- a/test/units/modules/cloud/amazon/test_ec2_group.py
+++ b/test/units/modules/cloud/amazon/test_ec2_group.py
@@ -1,5 +1,3 @@
-import pytest
-
from ansible.modules.cloud.amazon import ec2_group as group_module
diff --git a/test/units/modules/network/cnos/test_cnos_bgp.py b/test/units/modules/network/cnos/test_cnos_bgp.py
index 7d94a05d7f8..be9dde36877 100644
--- a/test/units/modules/network/cnos/test_cnos_bgp.py
+++ b/test/units/modules/network/cnos/test_cnos_bgp.py
@@ -1,8 +1,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-import os
from units.compat.mock import patch
from ansible.modules.network.cnos import cnos_bgp
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/cnos/test_cnos_command.py b/test/units/modules/network/cnos/test_cnos_command.py
index 42f3ef32d11..c38a0d014bc 100644
--- a/test/units/modules/network/cnos/test_cnos_command.py
+++ b/test/units/modules/network/cnos/test_cnos_command.py
@@ -19,8 +19,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.cnos import cnos_command
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/cnos/test_cnos_config.py b/test/units/modules/network/cnos/test_cnos_config.py
index 4ba1f382ed9..3a9cc9d8b46 100644
--- a/test/units/modules/network/cnos/test_cnos_config.py
+++ b/test/units/modules/network/cnos/test_cnos_config.py
@@ -20,8 +20,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.cnos import cnos_config
diff --git a/test/units/modules/network/cnos/test_cnos_interface.py b/test/units/modules/network/cnos/test_cnos_interface.py
index d7346abcf59..e6341a02cb7 100644
--- a/test/units/modules/network/cnos/test_cnos_interface.py
+++ b/test/units/modules/network/cnos/test_cnos_interface.py
@@ -20,9 +20,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import re
-import json
-
from units.compat.mock import patch
from ansible.modules.network.cnos import cnos_interface
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/cnos/test_cnos_l2_interface.py b/test/units/modules/network/cnos/test_cnos_l2_interface.py
index ad1c1a65d51..fc325880330 100644
--- a/test/units/modules/network/cnos/test_cnos_l2_interface.py
+++ b/test/units/modules/network/cnos/test_cnos_l2_interface.py
@@ -19,9 +19,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import re
-import json
-
from units.compat.mock import patch
from ansible.modules.network.cnos import cnos_l2_interface
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/cnos/test_cnos_l3_interface.py b/test/units/modules/network/cnos/test_cnos_l3_interface.py
index 8e7dd6f1823..527dda2ab77 100644
--- a/test/units/modules/network/cnos/test_cnos_l3_interface.py
+++ b/test/units/modules/network/cnos/test_cnos_l3_interface.py
@@ -19,9 +19,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import re
-import json
-
from units.compat.mock import patch
from ansible.modules.network.cnos import cnos_l3_interface
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/cnos/test_cnos_linkagg.py b/test/units/modules/network/cnos/test_cnos_linkagg.py
index a951cf6b48f..48788b03d4a 100644
--- a/test/units/modules/network/cnos/test_cnos_linkagg.py
+++ b/test/units/modules/network/cnos/test_cnos_linkagg.py
@@ -20,9 +20,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import re
-import json
-
from units.compat.mock import patch
from ansible.modules.network.cnos import cnos_linkagg
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/cnos/test_cnos_lldp.py b/test/units/modules/network/cnos/test_cnos_lldp.py
index dd8f2dd5354..a28b386a47d 100644
--- a/test/units/modules/network/cnos/test_cnos_lldp.py
+++ b/test/units/modules/network/cnos/test_cnos_lldp.py
@@ -19,9 +19,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import re
-import json
-
from units.compat.mock import patch
from ansible.modules.network.cnos import cnos_lldp
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/cnos/test_cnos_logging.py b/test/units/modules/network/cnos/test_cnos_logging.py
index 1a1204d2659..8bcb52cc7e1 100644
--- a/test/units/modules/network/cnos/test_cnos_logging.py
+++ b/test/units/modules/network/cnos/test_cnos_logging.py
@@ -21,8 +21,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.cnos import cnos_logging
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/cnos/test_cnos_vlag.py b/test/units/modules/network/cnos/test_cnos_vlag.py
index ed8b7751b7c..9b6e3bbd898 100644
--- a/test/units/modules/network/cnos/test_cnos_vlag.py
+++ b/test/units/modules/network/cnos/test_cnos_vlag.py
@@ -1,8 +1,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-import os
from units.compat.mock import patch
from ansible.modules.network.cnos import cnos_vlag
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/cnos/test_cnos_vlan.py b/test/units/modules/network/cnos/test_cnos_vlan.py
index 26c514b9e6f..cc63d26eb08 100644
--- a/test/units/modules/network/cnos/test_cnos_vlan.py
+++ b/test/units/modules/network/cnos/test_cnos_vlan.py
@@ -19,8 +19,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.cnos import cnos_vlan
from ansible.modules.network.cnos.cnos_vlan import parse_vlan_brief
diff --git a/test/units/modules/network/edgeswitch/test_edgeswitch_facts.py b/test/units/modules/network/edgeswitch/test_edgeswitch_facts.py
index 712af25a8bd..91dacc0eee3 100644
--- a/test/units/modules/network/edgeswitch/test_edgeswitch_facts.py
+++ b/test/units/modules/network/edgeswitch/test_edgeswitch_facts.py
@@ -18,8 +18,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.edgeswitch import edgeswitch_facts
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/edgeswitch/test_edgeswitch_vlan.py b/test/units/modules/network/edgeswitch/test_edgeswitch_vlan.py
index 9137b2b5a55..4328efcd18f 100644
--- a/test/units/modules/network/edgeswitch/test_edgeswitch_vlan.py
+++ b/test/units/modules/network/edgeswitch/test_edgeswitch_vlan.py
@@ -18,8 +18,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.edgeswitch import edgeswitch_vlan
from ansible.modules.network.edgeswitch.edgeswitch_vlan import parse_vlan_brief, parse_interfaces_switchport
diff --git a/test/units/modules/network/enos/test_enos_command.py b/test/units/modules/network/enos/test_enos_command.py
index 6e571e72bc0..f73aec68472 100644
--- a/test/units/modules/network/enos/test_enos_command.py
+++ b/test/units/modules/network/enos/test_enos_command.py
@@ -19,8 +19,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.enos import enos_command
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/enos/test_enos_config.py b/test/units/modules/network/enos/test_enos_config.py
index f7ac61388f4..375c7264ebf 100644
--- a/test/units/modules/network/enos/test_enos_config.py
+++ b/test/units/modules/network/enos/test_enos_config.py
@@ -20,8 +20,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.enos import enos_config
from .enos_module import TestEnosModule, load_fixture
diff --git a/test/units/modules/network/fortios/test_fortios_user_device.py b/test/units/modules/network/fortios/test_fortios_user_device.py
index ddb47f207bc..0608346b640 100644
--- a/test/units/modules/network/fortios/test_fortios_user_device.py
+++ b/test/units/modules/network/fortios/test_fortios_user_device.py
@@ -17,8 +17,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import os
-import json
import pytest
from ansible.module_utils.network.fortios.fortios import FortiOSHandler
diff --git a/test/units/modules/network/ios/test_ios_logging.py b/test/units/modules/network/ios/test_ios_logging.py
index 503adc9426e..c54f4a6eb63 100644
--- a/test/units/modules/network/ios/test_ios_logging.py
+++ b/test/units/modules/network/ios/test_ios_logging.py
@@ -21,8 +21,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.ios import ios_logging
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/ios/test_ios_user.py b/test/units/modules/network/ios/test_ios_user.py
index e81eddef67f..5f0032bcae6 100644
--- a/test/units/modules/network/ios/test_ios_user.py
+++ b/test/units/modules/network/ios/test_ios_user.py
@@ -19,8 +19,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.ios import ios_user
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/ios/test_ios_vlan.py b/test/units/modules/network/ios/test_ios_vlan.py
index d7533eccd56..3c7974ba8c2 100644
--- a/test/units/modules/network/ios/test_ios_vlan.py
+++ b/test/units/modules/network/ios/test_ios_vlan.py
@@ -19,8 +19,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.ios import ios_vlan
from ansible.modules.network.ios.ios_vlan import parse_vlan_brief
diff --git a/test/units/modules/network/netact/test_netact_cm_command.py b/test/units/modules/network/netact/test_netact_cm_command.py
index 17f8f7adbe8..e128979cb54 100644
--- a/test/units/modules/network/netact/test_netact_cm_command.py
+++ b/test/units/modules/network/netact/test_netact_cm_command.py
@@ -4,7 +4,6 @@ netact_cm_command unit tests
# -*- coding: utf-8 -*-
-
# (c) 2017, Nokia
# This file is part of Ansible
#
@@ -28,8 +27,6 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat import unittest
from ansible.module_utils import basic
from ansible.module_utils._text import to_bytes
diff --git a/test/units/modules/network/netscaler/test_netscaler_nitro_request.py b/test/units/modules/network/netscaler/test_netscaler_nitro_request.py
index addc6e11e14..9c024f4bb77 100644
--- a/test/units/modules/network/netscaler/test_netscaler_nitro_request.py
+++ b/test/units/modules/network/netscaler/test_netscaler_nitro_request.py
@@ -22,7 +22,6 @@ from .netscaler_module import TestModule
import copy
import tempfile
import json
-import sys
import codecs
from ansible.modules.network.netscaler import netscaler_nitro_request
diff --git a/test/units/modules/network/netvisor/test_pn_access_list_ip.py b/test/units/modules/network/netvisor/test_pn_access_list_ip.py
index df80fa37c81..df6f6e8a490 100644
--- a/test/units/modules/network/netvisor/test_pn_access_list_ip.py
+++ b/test/units/modules/network/netvisor/test_pn_access_list_ip.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_access_list_ip
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_admin_service.py b/test/units/modules/network/netvisor/test_pn_admin_service.py
index ce43a42df2f..41a4f9d6789 100644
--- a/test/units/modules/network/netvisor/test_pn_admin_service.py
+++ b/test/units/modules/network/netvisor/test_pn_admin_service.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_admin_service
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_admin_session_timeout.py b/test/units/modules/network/netvisor/test_pn_admin_session_timeout.py
index bd7447ac273..7d39946645d 100644
--- a/test/units/modules/network/netvisor/test_pn_admin_session_timeout.py
+++ b/test/units/modules/network/netvisor/test_pn_admin_session_timeout.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_admin_session_timeout
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_admin_syslog.py b/test/units/modules/network/netvisor/test_pn_admin_syslog.py
index 42c207f2cb5..1bd22cb8516 100644
--- a/test/units/modules/network/netvisor/test_pn_admin_syslog.py
+++ b/test/units/modules/network/netvisor/test_pn_admin_syslog.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_admin_syslog
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_connection_stats_settings.py b/test/units/modules/network/netvisor/test_pn_connection_stats_settings.py
index 843ed334c2b..4cb3216eae3 100644
--- a/test/units/modules/network/netvisor/test_pn_connection_stats_settings.py
+++ b/test/units/modules/network/netvisor/test_pn_connection_stats_settings.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_connection_stats_settings
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_cpu_class.py b/test/units/modules/network/netvisor/test_pn_cpu_class.py
index a8675370338..293d20356e9 100644
--- a/test/units/modules/network/netvisor/test_pn_cpu_class.py
+++ b/test/units/modules/network/netvisor/test_pn_cpu_class.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_cpu_class
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_cpu_mgmt_class.py b/test/units/modules/network/netvisor/test_pn_cpu_mgmt_class.py
index 419de90cc51..2b3e04ef92f 100644
--- a/test/units/modules/network/netvisor/test_pn_cpu_mgmt_class.py
+++ b/test/units/modules/network/netvisor/test_pn_cpu_mgmt_class.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_cpu_mgmt_class
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_dhcp_filter.py b/test/units/modules/network/netvisor/test_pn_dhcp_filter.py
index 21eb3a06af7..bb179c8858a 100644
--- a/test/units/modules/network/netvisor/test_pn_dhcp_filter.py
+++ b/test/units/modules/network/netvisor/test_pn_dhcp_filter.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_dhcp_filter
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_dscp_map.py b/test/units/modules/network/netvisor/test_pn_dscp_map.py
index 0921beaea74..eb965c2351d 100644
--- a/test/units/modules/network/netvisor/test_pn_dscp_map.py
+++ b/test/units/modules/network/netvisor/test_pn_dscp_map.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_dscp_map
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_dscp_map_pri_map.py b/test/units/modules/network/netvisor/test_pn_dscp_map_pri_map.py
index 5e8fe2d69b6..656cd79571a 100644
--- a/test/units/modules/network/netvisor/test_pn_dscp_map_pri_map.py
+++ b/test/units/modules/network/netvisor/test_pn_dscp_map_pri_map.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_dscp_map_pri_map
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_fabric_local.py b/test/units/modules/network/netvisor/test_pn_fabric_local.py
index 714a6477df4..17a5501fbce 100644
--- a/test/units/modules/network/netvisor/test_pn_fabric_local.py
+++ b/test/units/modules/network/netvisor/test_pn_fabric_local.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_fabric_local
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_igmp_snooping.py b/test/units/modules/network/netvisor/test_pn_igmp_snooping.py
index 58023fec3ba..87bf66fa87f 100644
--- a/test/units/modules/network/netvisor/test_pn_igmp_snooping.py
+++ b/test/units/modules/network/netvisor/test_pn_igmp_snooping.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_igmp_snooping
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_ipv6security_raguard.py b/test/units/modules/network/netvisor/test_pn_ipv6security_raguard.py
index f386df9c1be..84c5e05a25c 100644
--- a/test/units/modules/network/netvisor/test_pn_ipv6security_raguard.py
+++ b/test/units/modules/network/netvisor/test_pn_ipv6security_raguard.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_ipv6security_raguard
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_ipv6security_raguard_port.py b/test/units/modules/network/netvisor/test_pn_ipv6security_raguard_port.py
index a2cd73a7adc..dc45b498aa2 100644
--- a/test/units/modules/network/netvisor/test_pn_ipv6security_raguard_port.py
+++ b/test/units/modules/network/netvisor/test_pn_ipv6security_raguard_port.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_ipv6security_raguard_port
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_ipv6security_raguard_vlan.py b/test/units/modules/network/netvisor/test_pn_ipv6security_raguard_vlan.py
index 1fd6eb70dab..b3e250f725b 100644
--- a/test/units/modules/network/netvisor/test_pn_ipv6security_raguard_vlan.py
+++ b/test/units/modules/network/netvisor/test_pn_ipv6security_raguard_vlan.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_ipv6security_raguard_vlan
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_port_config.py b/test/units/modules/network/netvisor/test_pn_port_config.py
index 989b96f1d81..2c9fc14cdda 100644
--- a/test/units/modules/network/netvisor/test_pn_port_config.py
+++ b/test/units/modules/network/netvisor/test_pn_port_config.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_port_config
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_port_cos_bw.py b/test/units/modules/network/netvisor/test_pn_port_cos_bw.py
index 12106262fd5..7b3f5596b89 100644
--- a/test/units/modules/network/netvisor/test_pn_port_cos_bw.py
+++ b/test/units/modules/network/netvisor/test_pn_port_cos_bw.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_port_cos_bw
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_port_cos_rate_setting.py b/test/units/modules/network/netvisor/test_pn_port_cos_rate_setting.py
index e8a48061507..4144250edee 100644
--- a/test/units/modules/network/netvisor/test_pn_port_cos_rate_setting.py
+++ b/test/units/modules/network/netvisor/test_pn_port_cos_rate_setting.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_port_cos_rate_setting
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_prefix_list.py b/test/units/modules/network/netvisor/test_pn_prefix_list.py
index 66368be9c54..a95e96869b0 100644
--- a/test/units/modules/network/netvisor/test_pn_prefix_list.py
+++ b/test/units/modules/network/netvisor/test_pn_prefix_list.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_prefix_list
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_prefix_list_network.py b/test/units/modules/network/netvisor/test_pn_prefix_list_network.py
index c3ab339950f..18cf6fa54f5 100644
--- a/test/units/modules/network/netvisor/test_pn_prefix_list_network.py
+++ b/test/units/modules/network/netvisor/test_pn_prefix_list_network.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_prefix_list_network
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_role.py b/test/units/modules/network/netvisor/test_pn_role.py
index 8a21b3c574e..87ac2c2cd32 100644
--- a/test/units/modules/network/netvisor/test_pn_role.py
+++ b/test/units/modules/network/netvisor/test_pn_role.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_role
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_snmp_community.py b/test/units/modules/network/netvisor/test_pn_snmp_community.py
index 484e4e6164c..a5a0ec2ba38 100644
--- a/test/units/modules/network/netvisor/test_pn_snmp_community.py
+++ b/test/units/modules/network/netvisor/test_pn_snmp_community.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_snmp_community
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_snmp_trap_sink.py b/test/units/modules/network/netvisor/test_pn_snmp_trap_sink.py
index 5b03158e549..95fb0facabb 100644
--- a/test/units/modules/network/netvisor/test_pn_snmp_trap_sink.py
+++ b/test/units/modules/network/netvisor/test_pn_snmp_trap_sink.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_snmp_trap_sink
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_snmp_vacm.py b/test/units/modules/network/netvisor/test_pn_snmp_vacm.py
index ba49a37c3e8..b1c3a67451c 100644
--- a/test/units/modules/network/netvisor/test_pn_snmp_vacm.py
+++ b/test/units/modules/network/netvisor/test_pn_snmp_vacm.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_snmp_vacm
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_stp.py b/test/units/modules/network/netvisor/test_pn_stp.py
index ce10caeea51..634e621872b 100644
--- a/test/units/modules/network/netvisor/test_pn_stp.py
+++ b/test/units/modules/network/netvisor/test_pn_stp.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_stp
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_stp_port.py b/test/units/modules/network/netvisor/test_pn_stp_port.py
index 3464d7ba87c..fb5e002ec0a 100644
--- a/test/units/modules/network/netvisor/test_pn_stp_port.py
+++ b/test/units/modules/network/netvisor/test_pn_stp_port.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_stp_port
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_switch_setup.py b/test/units/modules/network/netvisor/test_pn_switch_setup.py
index 6e1759c54d7..8c2c77605bd 100644
--- a/test/units/modules/network/netvisor/test_pn_switch_setup.py
+++ b/test/units/modules/network/netvisor/test_pn_switch_setup.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_switch_setup
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_user.py b/test/units/modules/network/netvisor/test_pn_user.py
index 856ab397e62..6d05f68af99 100644
--- a/test/units/modules/network/netvisor/test_pn_user.py
+++ b/test/units/modules/network/netvisor/test_pn_user.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_user
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_vflow_table_profile.py b/test/units/modules/network/netvisor/test_pn_vflow_table_profile.py
index 8ef7722c227..03bc02212c8 100644
--- a/test/units/modules/network/netvisor/test_pn_vflow_table_profile.py
+++ b/test/units/modules/network/netvisor/test_pn_vflow_table_profile.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_vflow_table_profile
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_vrouter_bgp.py b/test/units/modules/network/netvisor/test_pn_vrouter_bgp.py
index 6a2e9b87f32..f5a759e989c 100644
--- a/test/units/modules/network/netvisor/test_pn_vrouter_bgp.py
+++ b/test/units/modules/network/netvisor/test_pn_vrouter_bgp.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_vrouter_bgp
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_vrouter_bgp_network.py b/test/units/modules/network/netvisor/test_pn_vrouter_bgp_network.py
index 6b8515049dd..5236f0f63e6 100644
--- a/test/units/modules/network/netvisor/test_pn_vrouter_bgp_network.py
+++ b/test/units/modules/network/netvisor/test_pn_vrouter_bgp_network.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_vrouter_bgp_network
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_vrouter_interface_ip.py b/test/units/modules/network/netvisor/test_pn_vrouter_interface_ip.py
index 6828419380e..08e6cf68c0e 100644
--- a/test/units/modules/network/netvisor/test_pn_vrouter_interface_ip.py
+++ b/test/units/modules/network/netvisor/test_pn_vrouter_interface_ip.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_vrouter_interface_ip
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_vrouter_loopback_interface.py b/test/units/modules/network/netvisor/test_pn_vrouter_loopback_interface.py
index fb557ee4332..4d1823954f3 100644
--- a/test/units/modules/network/netvisor/test_pn_vrouter_loopback_interface.py
+++ b/test/units/modules/network/netvisor/test_pn_vrouter_loopback_interface.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_vrouter_loopback_interface
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_vrouter_ospf.py b/test/units/modules/network/netvisor/test_pn_vrouter_ospf.py
index f739a18705e..b44cb4364ba 100644
--- a/test/units/modules/network/netvisor/test_pn_vrouter_ospf.py
+++ b/test/units/modules/network/netvisor/test_pn_vrouter_ospf.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_vrouter_ospf
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_vrouter_ospf6.py b/test/units/modules/network/netvisor/test_pn_vrouter_ospf6.py
index 0a93ee1479c..38eb3ef3629 100644
--- a/test/units/modules/network/netvisor/test_pn_vrouter_ospf6.py
+++ b/test/units/modules/network/netvisor/test_pn_vrouter_ospf6.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_vrouter_ospf6
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_vrouter_packet_relay.py b/test/units/modules/network/netvisor/test_pn_vrouter_packet_relay.py
index fdb05aac030..0a03cf7cbae 100644
--- a/test/units/modules/network/netvisor/test_pn_vrouter_packet_relay.py
+++ b/test/units/modules/network/netvisor/test_pn_vrouter_packet_relay.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_vrouter_packet_relay
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/netvisor/test_pn_vrouter_pim_config.py b/test/units/modules/network/netvisor/test_pn_vrouter_pim_config.py
index 6b67a553218..cc19e9ca7ec 100644
--- a/test/units/modules/network/netvisor/test_pn_vrouter_pim_config.py
+++ b/test/units/modules/network/netvisor/test_pn_vrouter_pim_config.py
@@ -4,8 +4,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.netvisor import pn_vrouter_pim_config
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/nso/test_nso_show.py b/test/units/modules/network/nso/test_nso_show.py
index aa1abbc796e..b1eac80a259 100644
--- a/test/units/modules/network/nso/test_nso_show.py
+++ b/test/units/modules/network/nso/test_nso_show.py
@@ -18,8 +18,6 @@
from __future__ import (absolute_import, division, print_function)
-import json
-
from units.compat.mock import patch
from ansible.modules.network.nso import nso_show
from . import nso_module
diff --git a/test/units/modules/network/onyx/test_onyx_lldp.py b/test/units/modules/network/onyx/test_onyx_lldp.py
index 3388c5234bc..4957af63604 100644
--- a/test/units/modules/network/onyx/test_onyx_lldp.py
+++ b/test/units/modules/network/onyx/test_onyx_lldp.py
@@ -20,8 +20,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.onyx import onyx_lldp
from units.modules.utils import set_module_args
diff --git a/test/units/modules/network/radware/test_vdirect_commit.py b/test/units/modules/network/radware/test_vdirect_commit.py
index 45df1313904..55a1bb2503b 100644
--- a/test/units/modules/network/radware/test_vdirect_commit.py
+++ b/test/units/modules/network/radware/test_vdirect_commit.py
@@ -17,7 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see .
-import os
from units.compat.mock import patch, MagicMock
from units.compat import unittest
diff --git a/test/units/modules/network/radware/test_vdirect_runnable.py b/test/units/modules/network/radware/test_vdirect_runnable.py
index 4e081023e07..94976171352 100644
--- a/test/units/modules/network/radware/test_vdirect_runnable.py
+++ b/test/units/modules/network/radware/test_vdirect_runnable.py
@@ -17,7 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see .
-import os
from units.compat.mock import patch, MagicMock
from units.compat import unittest
diff --git a/test/units/modules/network/vyos/test_vyos_command.py b/test/units/modules/network/vyos/test_vyos_command.py
index 63e5d6b3b94..02423affd86 100644
--- a/test/units/modules/network/vyos/test_vyos_command.py
+++ b/test/units/modules/network/vyos/test_vyos_command.py
@@ -19,8 +19,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from units.compat.mock import patch
from ansible.modules.network.vyos import vyos_command
from units.modules.utils import set_module_args
diff --git a/test/units/modules/packaging/language/test_gem.py b/test/units/modules/packaging/language/test_gem.py
index 7c5719b95e6..30c46d3bc1c 100644
--- a/test/units/modules/packaging/language/test_gem.py
+++ b/test/units/modules/packaging/language/test_gem.py
@@ -1,7 +1,6 @@
# Copyright (c) 2018 Antoine Catton
# MIT License (see licenses/MIT-license.txt or https://opensource.org/licenses/MIT)
import copy
-import json
import pytest
diff --git a/test/units/modules/packaging/os/test_apt.py b/test/units/modules/packaging/os/test_apt.py
index 4c4874f017b..d003ec40f4f 100644
--- a/test/units/modules/packaging/os/test_apt.py
+++ b/test/units/modules/packaging/os/test_apt.py
@@ -1,5 +1,4 @@
import collections
-import os
import sys
from units.compat import mock
diff --git a/test/units/modules/packaging/os/test_rhn_register.py b/test/units/modules/packaging/os/test_rhn_register.py
index 6065956a703..9d56ec8a782 100644
--- a/test/units/modules/packaging/os/test_rhn_register.py
+++ b/test/units/modules/packaging/os/test_rhn_register.py
@@ -1,4 +1,3 @@
-import contextlib
import json
import os
diff --git a/test/units/modules/storage/hpe3par/test_ss_3par_cpg.py b/test/units/modules/storage/hpe3par/test_ss_3par_cpg.py
index c40e23e1a77..35c11fa3bfe 100644
--- a/test/units/modules/storage/hpe3par/test_ss_3par_cpg.py
+++ b/test/units/modules/storage/hpe3par/test_ss_3par_cpg.py
@@ -4,7 +4,6 @@
import mock
-import pytest
import sys
sys.modules['hpe3par_sdk'] = mock.Mock()
sys.modules['hpe3par_sdk.client'] = mock.Mock()
diff --git a/test/units/modules/storage/netapp/test_na_ontap_service_processor_network.py b/test/units/modules/storage/netapp/test_na_ontap_service_processor_network.py
index 4307256aea1..b07509eb92f 100644
--- a/test/units/modules/storage/netapp/test_na_ontap_service_processor_network.py
+++ b/test/units/modules/storage/netapp/test_na_ontap_service_processor_network.py
@@ -4,7 +4,6 @@ from __future__ import print_function
import json
import pytest
-import time
from units.compat import unittest
from units.compat.mock import patch, Mock
from ansible.module_utils import basic
diff --git a/test/units/modules/storage/netapp/test_netapp_e_alerts.py b/test/units/modules/storage/netapp/test_netapp_e_alerts.py
index 4e8aba0719f..f51cb511b12 100644
--- a/test/units/modules/storage/netapp/test_netapp_e_alerts.py
+++ b/test/units/modules/storage/netapp/test_netapp_e_alerts.py
@@ -1,6 +1,5 @@
# (c) 2018, NetApp Inc.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
-import json
from ansible.modules.storage.netapp.netapp_e_alerts import Alerts
from units.modules.utils import AnsibleExitJson, AnsibleFailJson, ModuleTestCase, set_module_args
diff --git a/test/units/modules/storage/netapp/test_netapp_e_host.py b/test/units/modules/storage/netapp/test_netapp_e_host.py
index 77ed009f54e..aedd7603f5f 100644
--- a/test/units/modules/storage/netapp/test_netapp_e_host.py
+++ b/test/units/modules/storage/netapp/test_netapp_e_host.py
@@ -9,10 +9,7 @@ from ansible.modules.storage.netapp.netapp_e_host import Host
from units.modules.utils import AnsibleExitJson, AnsibleFailJson, ModuleTestCase, set_module_args
__metaclass__ = type
-import unittest
import mock
-import pytest
-import json
from units.compat.mock import patch
from ansible.module_utils._text import to_bytes
diff --git a/test/units/modules/storage/netapp/test_netapp_e_iscsi_interface.py b/test/units/modules/storage/netapp/test_netapp_e_iscsi_interface.py
index 7108148ccf8..8da1d3289f4 100644
--- a/test/units/modules/storage/netapp/test_netapp_e_iscsi_interface.py
+++ b/test/units/modules/storage/netapp/test_netapp_e_iscsi_interface.py
@@ -10,10 +10,7 @@ from ansible.modules.storage.netapp.netapp_e_iscsi_interface import IscsiInterfa
from units.modules.utils import AnsibleExitJson, AnsibleFailJson, ModuleTestCase, set_module_args
__metaclass__ = type
-import unittest
import mock
-import pytest
-import json
from units.compat.mock import patch
from ansible.module_utils._text import to_bytes
diff --git a/test/units/modules/storage/netapp/test_netapp_e_syslog.py b/test/units/modules/storage/netapp/test_netapp_e_syslog.py
index 447757b74c6..ca02e28919e 100644
--- a/test/units/modules/storage/netapp/test_netapp_e_syslog.py
+++ b/test/units/modules/storage/netapp/test_netapp_e_syslog.py
@@ -1,11 +1,9 @@
# (c) 2018, NetApp Inc.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
-import json
from ansible.modules.storage.netapp.netapp_e_syslog import Syslog
from ansible.module_utils.six.moves.urllib.error import HTTPError
from units.modules.utils import AnsibleExitJson, AnsibleFailJson, ModuleTestCase, set_module_args
-import time
__metaclass__ = type
from units.compat import mock
diff --git a/test/units/modules/system/test_systemd.py b/test/units/modules/system/test_systemd.py
index b2a1cd69a0e..8471fd5c3bd 100644
--- a/test/units/modules/system/test_systemd.py
+++ b/test/units/modules/system/test_systemd.py
@@ -1,5 +1,3 @@
-import os
-import tempfile
from units.compat import unittest
from ansible.modules.system.systemd import parse_systemctl_show
diff --git a/test/units/plugins/action/test_synchronize.py b/test/units/plugins/action/test_synchronize.py
index 0b24ec67227..7fa1ece1f4c 100644
--- a/test/units/plugins/action/test_synchronize.py
+++ b/test/units/plugins/action/test_synchronize.py
@@ -12,7 +12,6 @@
import json
import os
-import sys
import unittest
import yaml
diff --git a/test/units/plugins/callback/test_callback.py b/test/units/plugins/callback/test_callback.py
index 01b89e0811e..b69a59ced58 100644
--- a/test/units/plugins/callback/test_callback.py
+++ b/test/units/plugins/callback/test_callback.py
@@ -27,8 +27,6 @@ import types
from units.compat import unittest
from units.compat.mock import patch, mock_open, MagicMock
-import pytest
-
from ansible.plugins.callback import CallbackBase
diff --git a/test/units/plugins/connection/test_netconf.py b/test/units/plugins/connection/test_netconf.py
index 9c5da1ccd29..0f4cc648e40 100644
--- a/test/units/plugins/connection/test_netconf.py
+++ b/test/units/plugins/connection/test_netconf.py
@@ -21,8 +21,6 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import sys
-import re
-import json
import pytest
from io import StringIO
diff --git a/test/units/plugins/connection/test_network_cli.py b/test/units/plugins/connection/test_network_cli.py
index cbd64addd2b..3761a67a4fb 100644
--- a/test/units/plugins/connection/test_network_cli.py
+++ b/test/units/plugins/connection/test_network_cli.py
@@ -21,7 +21,6 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import re
-import time
import json
from io import StringIO
diff --git a/test/units/plugins/terminal/test_slxos.py b/test/units/plugins/terminal/test_slxos.py
index ece3169c7f3..f1d9235b4e9 100644
--- a/test/units/plugins/terminal/test_slxos.py
+++ b/test/units/plugins/terminal/test_slxos.py
@@ -20,7 +20,6 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from os import path
-import json
from mock import MagicMock
diff --git a/test/units/test_context.py b/test/units/test_context.py
index cadd4943786..837360452ab 100644
--- a/test/units/test_context.py
+++ b/test/units/test_context.py
@@ -6,9 +6,6 @@
from __future__ import (absolute_import, division)
__metaclass__ = type
-
-import pytest
-
from ansible import context
diff --git a/test/units/utils/kubevirt_fixtures.py b/test/units/utils/kubevirt_fixtures.py
index ebcf5af9458..fd2fdb95fe0 100644
--- a/test/units/utils/kubevirt_fixtures.py
+++ b/test/units/utils/kubevirt_fixtures.py
@@ -1,4 +1,3 @@
-import json
import pytest
from units.compat.mock import MagicMock
diff --git a/test/units/utils/test_encrypt.py b/test/units/utils/test_encrypt.py
index 64c092f94fd..e0037afa00c 100644
--- a/test/units/utils/test_encrypt.py
+++ b/test/units/utils/test_encrypt.py
@@ -16,7 +16,6 @@
# along with Ansible. If not, see .
import pytest
-import sys
from ansible.errors import AnsibleError, AnsibleFilterError
from ansible.plugins.filter.core import get_encrypted_password