summaryrefslogtreecommitdiffhomepage
path: root/tests/test_sftp.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-12-04 00:03:57 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2015-12-04 00:03:57 -0500
commit7dbb01c7054b7a79fb9e0f3fac9a18732d3fac13 (patch)
tree115a4e1125a5c6c7d98f83ab0d83e77a749b43d0 /tests/test_sftp.py
parentf5ba7d5a60110ea7236492f66406f542a09d88a3 (diff)
parent2576b16b5439fd3487e498c21203593e10dbee52 (diff)
Merge branch 'master' into switch-to-cryptography
Diffstat (limited to 'tests/test_sftp.py')
-rwxr-xr-xtests/test_sftp.py3
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')