We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a269b26 commit a6bd540Copy full SHA for a6bd540
tests/test_pssh_client.py
@@ -979,7 +979,7 @@ def test_ssh_client_utf_encoding(self):
979
# and utf-8 encoded ascii decoded to utf-16 on py3
980
output = client.run_command(self.fake_cmd, encoding='utf-16')
981
stdout = list(output[self.host]['stdout'])
982
- if type(self.fake_resp) == bytes:
+ if isinstance(self.fake_resp, bytes):
983
self.assertEqual([self.fake_resp.decode('utf-16')], stdout)
984
else:
985
self.assertEqual([self.fake_resp.encode('utf-8').decode('utf-16')],
0 commit comments