summaryrefslogtreecommitdiff
path: root/openstackclient/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-02-23 08:50:24 +0000
committerGerrit Code Review <review@openstack.org>2016-02-23 08:50:24 +0000
commit02e5b6f41d2b5f026ce1f1f5b7026d5968a7c20f (patch)
tree4e65880d9cbe6de2112b6d83fbf755a270f59c9f /openstackclient/tests
parentdb4d73d8c8c3471df2f515d2881e121f456678d9 (diff)
parent11a8f911affe10bacce41ad3474a28aff3417ec3 (diff)
downloadpython-openstackclient-02e5b6f41d2b5f026ce1f1f5b7026d5968a7c20f.tar.gz
Merge "Use instanceof instead of type"
Diffstat (limited to 'openstackclient/tests')
-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