/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2011-04-08 12:28:05 UTC
  • mfrom: (5771 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5775.
  • Revision ID: john@arbash-meinel.com-20110408122805-qdo9uc2dtc9mzoic
Merge bzr 5771, make sure to have the latest create-file changes, etc.

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