summaryrefslogtreecommitdiffhomepage
path: root/tests/test_auth.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_auth.py')
-rw-r--r--tests/test_auth.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_auth.py b/tests/test_auth.py
index 5fd0bf5d..586289ba 100644
--- a/tests/test_auth.py
+++ b/tests/test_auth.py
@@ -29,13 +29,11 @@ from paramiko import Transport, ServerInterface, RSAKey, DSSKey, \
AuthenticationException
from paramiko import AUTH_FAILED, AUTH_PARTIALLY_SUCCESSFUL, AUTH_SUCCESSFUL
from paramiko import OPEN_SUCCEEDED, OPEN_FAILED_ADMINISTRATIVELY_PROHIBITED
+from paramiko.py3compat import u
from tests.loop import LoopSocket
from tests.util import test_path
-try:
- _pwd = u'\u2022'
-except Exception:
- _pwd = '\u2022'
+_pwd = u('\u2022')
class NullServer (ServerInterface):