~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport_implementations.py

  • Committer: Alexander Belchenko
  • Date: 2006-12-19 08:26:36 UTC
  • mfrom: (2198 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2204.
  • Revision ID: bialix@ukr.net-20061219082636-xbb55np3wnamva8t
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1327
1327
 
1328
1328
        # This is intentionally reading off the end of the file
1329
1329
        # since we are sure that it cannot get there
1330
 
        self.assertListRaises((errors.ShortReadvError, AssertionError),
 
1330
        self.assertListRaises((errors.ShortReadvError, errors.InvalidRange,
 
1331
                               # Can be raised by paramiko
 
1332
                               AssertionError),
1331
1333
                              transport.readv, 'a', [(1,1), (8,10)])
1332
1334
 
1333
1335
        # This is trying to seek past the end of the file, it should
1334
1336
        # also raise a special error
1335
 
        self.assertListRaises(errors.ShortReadvError,
 
1337
        self.assertListRaises((errors.ShortReadvError, errors.InvalidRange),
1336
1338
                              transport.readv, 'a', [(12,2)])