diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2019-08-27 14:20:27 -0400 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2019-09-26 13:51:01 -0500 |
commit | 8cd97c0b1df8a6902c3c77d18282f604287caca9 (patch) | |
tree | 616f5f56f54b517c9d6f9b687c4f91e0b95ffa04 /tests/util.py | |
parent | b1bbacdcc4f0be50b8fe584f329d344fb13544bd (diff) | |
download | paramiko-897-canonicalization.tar.gz |
Implement ssh_config hostname canonicalization (WIP)897-canonicalization
- Refactor DNS lookup related junk previously only relevant to %h
- Refactor guts of lookup() so it can be done >1 time
- Changelog/tests/implementation for canonicalization itself
Closes #897
Diffstat (limited to 'tests/util.py')
-rw-r--r-- | tests/util.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/util.py b/tests/util.py index cdc835c9..339677aa 100644 --- a/tests/util.py +++ b/tests/util.py @@ -9,8 +9,15 @@ from paramiko.py3compat import builtins from paramiko.ssh_gss import GSS_AUTH_AVAILABLE +tests_dir = dirname(realpath(__file__)) + + def _support(filename): - return join(dirname(realpath(__file__)), filename) + return join(tests_dir, filename) + + +def _config(name): + return join(tests_dir, "configs", "{}.config".format(name)) needs_gssapi = pytest.mark.skipif( |