summaryrefslogtreecommitdiffhomepage
path: root/tests/_util.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/_util.py')
-rw-r--r--tests/_util.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/_util.py b/tests/_util.py
index ec7585df..acc06852 100644
--- a/tests/_util.py
+++ b/tests/_util.py
@@ -352,6 +352,9 @@ def server(
"""
SSH server contextmanager for testing.
+ Yields a tuple of ``(tc, ts)`` (client- and server-side `Transport`
+ objects), or ``(tc, ts, err)`` when ``catch_error==True``.
+
:param hostkey:
Host key to use for the server; if None, loads
``rsa.key``.