summaryrefslogtreecommitdiff
path: root/openstackclient/tests/test_shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstackclient/tests/test_shell.py')
-rw-r--r--openstackclient/tests/test_shell.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/openstackclient/tests/test_shell.py b/openstackclient/tests/test_shell.py
index c4546d89..80b18161 100644
--- a/openstackclient/tests/test_shell.py
+++ b/openstackclient/tests/test_shell.py
@@ -317,7 +317,7 @@ class TestShellOptions(TestShell):
if not test_opts[opt][1]:
continue
key = opt2attr(opt)
- if type(test_opts[opt][0]) is str:
+ if isinstance(test_opts[opt][0], str):
cmd = opt + " " + test_opts[opt][0]
else:
cmd = opt
@@ -331,7 +331,7 @@ class TestShellOptions(TestShell):
if not test_opts[opt][1]:
continue
key = opt2attr(opt)
- if type(test_opts[opt][0]) is str:
+ if isinstance(test_opts[opt][0], str):
cmd = opt + " " + test_opts[opt][0]
else:
cmd = opt