summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2006-05-01 17:27:09 -0700
committerRobey Pointer <robey@lag.net>2006-05-01 17:27:09 -0700
commit2067e9a1368376f5ac7955874362679751562eca (patch)
treec06e5768590ece03047caff51ec84115a1895050 /tests
parent57bc6728af8f8cb2bf2a0250d1261df6f916f8d4 (diff)
downloadparamiko-2067e9a1368376f5ac7955874362679751562eca.tar.gz
[project @ robey@lag.net-20060502002709-617a268779f7ca6b]
readv should just yield results as it gets them (suggestion from robertc)
Diffstat (limited to 'tests')
-rw-r--r--tests/test_sftp_big.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_sftp_big.py b/tests/test_sftp_big.py
index aefe3ef3..94edab02 100644
--- a/tests/test_sftp_big.py
+++ b/tests/test_sftp_big.py
@@ -232,7 +232,7 @@ class BigSFTPTest (unittest.TestCase):
for i in xrange(len(readv_list)):
offset = readv_list[i][0]
n_offset = offset % 1024
- self.assertEqual(ret[i], k2blob[n_offset:n_offset + chunk])
+ self.assertEqual(ret.next(), k2blob[n_offset:n_offset + chunk])
f.close()
end = time.time()
sys.stderr.write('%ds ' % round(end - start))