~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_clean_tree.py

  • Committer: Jelmer Vernooij
  • Date: 2011-05-03 23:16:56 UTC
  • mto: This revision was merged to the branch mainline in revision 5819.
  • Revision ID: jelmer@samba.org-20110503231656-4sxm717yejm8cpuw
Add tariff test to make sure working tree isn't opened by 'bzr serve'
that simply accesses a branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
        def _dummy_rmtree(path, ignore_errors=False, onerror=None):
99
99
            """Call user supplied error handler onerror.
100
100
            """
 
101
            self.assertTrue(isinstance(onerror, types.FunctionType))
101
102
            # Indicate failure in removing 'path' if path is subdir0
102
103
            # We later check to ensure that this is indicated
103
104
            # to the user as a warning. We raise OSError to construct