summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2022-06-03 19:20:17 -0400
committerJeff Forcier <jeff@bitprophet.org>2022-06-03 19:20:17 -0400
commita9ce285b03cf977c76cde01cb4b67101d74fb4d3 (patch)
tree1b9252174302656ec8dc3e7793d6180f418e4e87
parentc42be15d86e919cebfe4a585d1db97fcaafdbe59 (diff)
parentdc2547d62b7dfe7e5eb917585e0436f2f3a65a46 (diff)
Merge branch '2.8' into 2.9
-rw-r--r--tests/test_config.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_config.py b/tests/test_config.py
index 5e9aa059..2095061f 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
@@ -705,6 +709,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"))