diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2017-12-18 19:55:43 -0800 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2017-12-31 16:10:47 -0500 |
commit | 09dd2eeb080d5bff1d51dacfa3da3a9ed20f5b46 (patch) | |
tree | dc3fdaab3a42c2cf4141ba544b135f793c472f94 | |
parent | 144c9786022a36bb66e9b224ae39f475cfdd2305 (diff) | |
download | paramiko-09dd2eeb080d5bff1d51dacfa3da3a9ed20f5b46.tar.gz |
Python 3 gets mad if you star import inside inner scopes.
So let's do the right thing instead, jeez
-rw-r--r-- | tests/test_util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_util.py b/tests/test_util.py index 262b3f50..2c392ea3 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -26,6 +26,7 @@ import os from hashlib import sha1 import unittest +import paramiko # for top-level contents test import paramiko.util from paramiko.util import lookup_ssh_host_config as host_config, safe_string from paramiko.py3compat import StringIO, byte_ord @@ -67,8 +68,7 @@ class UtilTest(unittest.TestCase): """ verify that all the classes can be imported from paramiko. """ - from paramiko import * # noqa - symbols = list(locals().keys()) + symbols = list(vars(paramiko).keys()) self.assertTrue('Transport' in symbols) self.assertTrue('SSHClient' in symbols) self.assertTrue('MissingHostKeyPolicy' in symbols) |