~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2011-09-08 08:03:35 UTC
  • mfrom: (6123.1.14 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6252.
  • Revision ID: v.ladeuil+lp@free.fr-20110908080335-ddel4ir5grz945xa
Merge into trunk

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.