summaryrefslogtreecommitdiffstats
path: root/test/units/module_utils/test_distro.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/units/module_utils/test_distro.py')
-rw-r--r--test/units/module_utils/test_distro.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/units/module_utils/test_distro.py b/test/units/module_utils/test_distro.py
index a0d3b431b1..55a40f5a5c 100644
--- a/test/units/module_utils/test_distro.py
+++ b/test/units/module_utils/test_distro.py
@@ -15,7 +15,6 @@
from __future__ import annotations
from ansible.module_utils import distro
-from ansible.module_utils.six import string_types
# Generic test case with minimal assertions about specific returned values.
@@ -29,7 +28,7 @@ class TestDistro():
def test_id(self):
id = distro.id()
- assert isinstance(id, string_types), 'distro.id() returned %s (%s) which is not a string' % (id, type(id))
+ assert isinstance(id, str), 'distro.id() returned %s (%s) which is not a string' % (id, type(id))
def test_opensuse_leap_id(self):
name = distro.name()