Skip to content

Commit 52ed2eb

Browse files
Apply suggestions from code review
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
1 parent 4632975 commit 52ed2eb

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/changelog-fragments/756.feature.2.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Added a ``pylibsshext.session.connect()`` parameter
22
``timeout_usec`` to set ``SSH_OPTIONS_TIMEOUT_USEC``.
3+
34
This allows setting the ``SSH_OPTIONS_TIMEOUT_USEC``
45
ssh option, though ``SSH_OPTIONS_TIMEOUT`` is a more
56
practical option.

tests/unit/channel_test.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ def ssh_channel(ssh_client_session):
3838
def test_open_session_timeout(ssh_session_connect):
3939
"""Test opening a new channel with a low timeout value.
4040
41-
This generates an exception from ssh_channel_open_session()
42-
returning SSH_AGAIN with the usec timeout and default
43-
open_session_retries value of 0.
41+
This generates an exception from ``ssh_channel_open_session()``
42+
returning ``SSH_AGAIN`` with the ``usec`` timeout and default
43+
``open_session_retries`` value of ``0``.
4444
"""
4545
ssh_session = Session()
4646
ssh_session_connect(ssh_session)
@@ -54,8 +54,8 @@ def test_open_session_timeout(ssh_session_connect):
5454
def test_open_session_with_retries(ssh_session_connect_retries):
5555
"""Test with a low timeout value and retries set.
5656
57-
This sets 'open_session_retries=10' and with the retries
58-
ssh_channel_open_session() will succeed.
57+
This sets ``open_session_retries=10`` and with the retries
58+
``ssh_channel_open_session()`` will succeed.
5959
"""
6060
ssh_session = Session()
6161
ssh_session_connect_retries(ssh_session)

0 commit comments

Comments
 (0)