~bzr/ubuntu/hardy/bzr/beta-ppa

« back to all changes in this revision

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

  • Committer: Max Bowsher
  • Date: 2011-04-30 17:14:51 UTC
  • mfrom: (3876.1.10 jaunty)
  • Revision ID: maxb@f2s.com-20110430171451-74ydto59tdotsxa6
MergeĀ 2.4.0~beta2-2

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    tests,
27
27
    )
28
28
from bzrlib.inventory import ROOT_ID
29
 
from bzrlib.tests import TestSkipped
 
29
from bzrlib.tests import (
 
30
    TestNotApplicable,
 
31
    TestSkipped,
 
32
    )
30
33
from bzrlib.tests.per_repository import TestCaseWithRepository
31
34
 
32
35
 
263
266
        repo = wt.branch.repository
264
267
        repo.lock_write()
265
268
        repo.start_write_group()
266
 
        repo.sign_revision('rev1', gpg.LoopbackGPGStrategy(None))
 
269
        try:
 
270
            repo.sign_revision('rev1', gpg.LoopbackGPGStrategy(None))
 
271
        except errors.UnsupportedOperation:
 
272
            self.assertFalse(repo._format.supports_revision_signatures)
 
273
            raise TestNotApplicable("repository format does not support signatures")
267
274
        repo.commit_write_group()
268
275
        repo.unlock()
269
276
        return repo