Skip to content

Commit a6bd540

Browse files
author
Dan
committed
Minor change in testing code
1 parent a269b26 commit a6bd540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_pssh_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ def test_ssh_client_utf_encoding(self):
979979
# and utf-8 encoded ascii decoded to utf-16 on py3
980980
output = client.run_command(self.fake_cmd, encoding='utf-16')
981981
stdout = list(output[self.host]['stdout'])
982-
if type(self.fake_resp) == bytes:
982+
if isinstance(self.fake_resp, bytes):
983983
self.assertEqual([self.fake_resp.decode('utf-16')], stdout)
984984
else:
985985
self.assertEqual([self.fake_resp.encode('utf-8').decode('utf-16')],

0 commit comments

Comments
 (0)