~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

(gz) Never raise KnownFailure in tests,
 use knownFailure method instead (Martin [gz])

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):