~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_sftp_transport.py

  • Committer: Martin
  • Date: 2011-05-07 23:09:11 UTC
  • mto: This revision was merged to the branch mainline in revision 5837.
  • Revision ID: gzlist@googlemail.com-20110507230911-1960n4ca2gsrv2i7
Add close method to ReadvFile test object to fix failure

Show diffs side-by-side

added added

removed removed

Lines of Context:
417
417
 
418
418
 
419
419
class ReadvFile(object):
420
 
    """An object that acts like Paramiko's SFTPFile.readv()"""
 
420
    """An object that acts like Paramiko's SFTPFile when readv() is used"""
421
421
 
422
422
    def __init__(self, data):
423
423
        self._data = data
426
426
        for start, length in requests:
427
427
            yield self._data[start:start+length]
428
428
 
 
429
    def close(self):
 
430
        pass
 
431
 
429
432
 
430
433
def _null_report_activity(*a, **k):
431
434
    pass