/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 breezy/tests/per_interbranch/test_pull.py

  • Committer: Jelmer Vernooij
  • Date: 2018-03-04 02:57:55 UTC
  • mto: This revision was merged to the branch mainline in revision 6876.
  • Revision ID: jelmer@jelmer.uk-20180304025755-sucfy09mjryk5adq
Consistently use Branch.user_url.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
from breezy import errors
22
22
from breezy.memorytree import MemoryTree
23
23
from breezy.revision import NULL_REVISION
 
24
from breezy.tests import TestNotApplicable
24
25
from breezy.tests.per_interbranch import TestCaseWithInterBranch
25
26
 
26
27
 
77
78
        other = self.sprout_to(master_tree.branch.controldir, 'other').open_branch()
78
79
        # move the branch out of the way on disk to cause a connection
79
80
        # error.
80
 
        master_tree.branch.controldir.destroy_branch()
 
81
        try:
 
82
            master_tree.branch.controldir.destroy_branch()
 
83
        except errors.UnsupportedOperation:
 
84
            raise TestNotApplicable(
 
85
                'control format does not support destroying default branch')
81
86
        # try to pull, which should raise a BoundBranchConnectionFailure.
82
87
        self.assertRaises(errors.BoundBranchConnectionFailure,
83
88
                          checkout.branch.pull, other)