~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_repository/test_fetch.py

  • Committer: Martin
  • Date: 2011-08-04 00:17:53 UTC
  • mto: This revision was merged to the branch mainline in revision 6055.
  • Revision ID: gzlist@googlemail.com-20110804001753-plgpwcpsxcum16yb
Make tests raising KnownFailure use the knownFailure method instead

Show diffs side-by-side

added added

removed removed

Lines of Context:
344
344
            # The code inside fetch() that tries to lock and then fails, also
345
345
            # causes weird problems with 'lock_not_held' later on...
346
346
            target.lock_read()
347
 
            raise tests.KnownFailure('some repositories fail to fetch'
 
347
            self.knownFailure('some repositories fail to fetch'
348
348
                ' via the smart server because of locking issues.')
349
349
 
350
350
    def test_fetch_from_smart_with_ghost(self):