diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-02-23 08:50:24 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-02-23 08:50:24 +0000 |
| commit | 02e5b6f41d2b5f026ce1f1f5b7026d5968a7c20f (patch) | |
| tree | 4e65880d9cbe6de2112b6d83fbf755a270f59c9f /openstackclient/tests | |
| parent | db4d73d8c8c3471df2f515d2881e121f456678d9 (diff) | |
| parent | 11a8f911affe10bacce41ad3474a28aff3417ec3 (diff) | |
| download | python-openstackclient-02e5b6f41d2b5f026ce1f1f5b7026d5968a7c20f.tar.gz | |
Merge "Use instanceof instead of type"
Diffstat (limited to 'openstackclient/tests')
| -rw-r--r-- | openstackclient/tests/test_shell.py | 4 |
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 |
