~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_workingtree/test_readonly.py

  • Committer: Tarmac
  • Author(s): Vincent Ladeuil
  • Date: 2017-01-30 14:42:05 UTC
  • mfrom: (6620.1.1 trunk)
  • Revision ID: tarmac-20170130144205-r8fh2xpmiuxyozpv
Merge  2.7 into trunk including fix for bug #1657238 [r=vila]

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    )
27
27
from bzrlib.tests.per_workingtree import TestCaseWithWorkingTree
28
28
 
 
29
from bzrlib.workingtree import InventoryWorkingTree
 
30
 
29
31
 
30
32
class TestReadonly(TestCaseWithWorkingTree):
31
33
 
77
79
        """Even if the tree is unclean, we should still handle readonly dirs."""
78
80
        # First create a tree
79
81
        tree = self.create_basic_tree()
 
82
        if not isinstance(tree, InventoryWorkingTree):
 
83
            raise tests.TestNotApplicable("requires inventory working tree")
80
84
 
81
85
        # XXX: *Ugly* *ugly* hack, we need the hashcache to think it is out of
82
86
        # date, but we don't want to actually wait 3 seconds doing nothing.