~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Jonathan Riddell
  • Date: 2011-09-07 14:20:10 UTC
  • mfrom: (6123.1.10 +trunk)
  • mto: (6123.1.12 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6124.
  • Revision ID: jriddell@canonical.com-20110907142010-kncwzcbpsxd714ug
mergeĀ inĀ 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.