diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-12-04 00:03:57 -0500 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-12-04 00:03:57 -0500 |
commit | 7dbb01c7054b7a79fb9e0f3fac9a18732d3fac13 (patch) | |
tree | 115a4e1125a5c6c7d98f83ab0d83e77a749b43d0 /tests/test_sftp.py | |
parent | f5ba7d5a60110ea7236492f66406f542a09d88a3 (diff) | |
parent | 2576b16b5439fd3487e498c21203593e10dbee52 (diff) |
Merge branch 'master' into switch-to-cryptography
Diffstat (limited to 'tests/test_sftp.py')
-rwxr-xr-x | tests/test_sftp.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_sftp.py b/tests/test_sftp.py index aa450f59..131b8abf 100755 --- a/tests/test_sftp.py +++ b/tests/test_sftp.py @@ -696,7 +696,8 @@ class SFTPTest (unittest.TestCase): f.readv([(0, 12)]) with sftp.open(FOLDER + '/zero', 'r') as f: - f.prefetch() + file_size = f.stat().st_size + f.prefetch(file_size) f.read(100) finally: sftp.unlink(FOLDER + '/zero') |