From 2067e9a1368376f5ac7955874362679751562eca Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Mon, 1 May 2006 17:27:09 -0700 Subject: [project @ robey@lag.net-20060502002709-617a268779f7ca6b] readv should just yield results as it gets them (suggestion from robertc) --- tests/test_sftp_big.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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)) -- cgit v1.2.3