Skip to content

Commit 3c30c72

Browse files
webknjazJakuje
authored andcommitted
Clarify the src_path_large fixture docstring
1 parent 1d18e70 commit 3c30c72

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/unit/scp_test.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,12 @@ def large_payload():
105105

106106
@pytest.fixture
107107
def src_path_large(tmp_path, large_payload):
108-
"""Return a remote path that is a file larger than 64k B, which is the most libssh can read at once."""
108+
"""Return a remote path that to a 65537 byte-sized file.
109+
110+
Typical single-read chunk size is 64kB in ``libssh`` so
111+
the test needs a file that would overflow that to trigger
112+
the read loop.
113+
"""
109114
path = tmp_path / 'large.txt'
110115
path.write_bytes(large_payload)
111116
return path

0 commit comments

Comments
 (0)