diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2022-06-03 19:20:17 -0400 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2022-06-03 19:20:17 -0400 |
commit | 00fce050cb33fb5ec1f13811c1ad8188cf11645d (patch) | |
tree | 3df3ee6f8687f2738aa91ceac2bca90394f7e7aa /tests | |
parent | 690243665dee43d5f7cb280c4cd29eff2367433b (diff) | |
parent | 47162b7c71fbf25ac0a31d1bac3d1166778e20d4 (diff) |
Merge branch '2.10' into 2.11
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_config.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index 45fb262d..017d4bbf 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -6,7 +6,11 @@ from socket import gaierror from paramiko.py3compat import string_types -from invoke import Result +try: + from invoke import Result +except ImportError: + Result = None + from mock import patch from pytest import raises, mark, fixture @@ -742,6 +746,7 @@ def _expect(success_on): return inner +@mark.skipif(Result is None, reason="requires invoke package") class TestMatchExec(object): @patch("paramiko.config.invoke", new=None) @patch("paramiko.config.invoke_import_error", new=ImportError("meh")) |