summaryrefslogtreecommitdiffhomepage
path: root/tests/test_client.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_client.py')
-rw-r--r--tests/test_client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_client.py b/tests/test_client.py
index 0959ac9a..a8d04630 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -29,6 +29,7 @@ import weakref
from binascii import hexlify
from tests.util import test_path
import paramiko
+from paramiko.py3compat import b
class NullServer (paramiko.ServerInterface):
@@ -44,7 +45,7 @@ class NullServer (paramiko.ServerInterface):
return paramiko.AUTH_FAILED
def check_auth_publickey(self, username, key):
- if (key.get_name() == 'ssh-dss') and (hexlify(key.get_fingerprint()) == '4478f0b9a23cc5182009ff755bc1d26c'):
+ if (key.get_name() == 'ssh-dss') and (hexlify(key.get_fingerprint()) == b('4478f0b9a23cc5182009ff755bc1d26c')):
return paramiko.AUTH_SUCCESSFUL
return paramiko.AUTH_FAILED