~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_branch/test_push.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-02-22 16:53:15 UTC
  • mfrom: (5674.1.2 supports-leaving-lock)
  • Revision ID: pqm@pqm.ubuntu.com-20110222165315-o04d6ofm8hqjc0ay
(jelmer) Add BranchFormat.supports_leaving_lock and
 RepositoryFormat.supports_leaving_lock flags. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
350
350
            raise tests.TestNotApplicable(
351
351
                'Does not apply when remote backing branch is also '
352
352
                'a smart branch')
353
 
        if isinstance(self.branch_format, branch.BzrBranchFormat4):
 
353
        if not self.branch_format.supports_leaving_lock():
354
354
            raise tests.TestNotApplicable(
355
 
                'Branch format 4 is not usable via HPSS.')
 
355
                'Branch format is not usable via HPSS.')
356
356
        super(EmptyPushSmartEffortTests, self).setUp()
357
357
        # Create a smart server that publishes whatever the backing VFS server
358
358
        # does.