~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2012-02-20 12:19:29 UTC
  • mfrom: (6437.23.11 2.5)
  • mto: (6581.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 6582.
  • Revision ID: jelmer@samba.org-20120220121929-7ni2psvjoatm1yp4
Merge bzr/2.5.

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.