~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-09-01 20:21:14 UTC
  • mfrom: (6113.1.4 wt-foreign-test-fixes)
  • Revision ID: pqm@pqm.ubuntu.com-20110901202114-g5ayj75lq9f47sch
(jelmer) Various fixes to allow tests to run against foreign branches.
 (Jelmer Vernooij)

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.