diff options
author | Scott Maxwell <scott@codecobblers.com> | 2013-10-31 15:25:45 -0700 |
---|---|---|
committer | Scott Maxwell <scott@codecobblers.com> | 2013-10-31 15:25:45 -0700 |
commit | 7a45d3c70f6f308835ab66e3899e247e0efc17e7 (patch) | |
tree | 978d3cf01da97eabf7a7ad2d92c46160eca49422 /tests/test_client.py | |
parent | 09a4ffb282957595b1eee7adaead5d0503a5f54a (diff) |
More type conversion
Diffstat (limited to 'tests/test_client.py')
-rw-r--r-- | tests/test_client.py | 3 |
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 |