/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_clean_tree.py

  • Committer: Parth Malwankar
  • Date: 2010-08-21 03:42:26 UTC
  • mto: This revision was merged to the branch mainline in revision 5386.
  • Revision ID: parth.malwankar@gmail.com-20100821034226-comnjgn0t5ho9szm
improved comments

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
            self.assertTrue(isinstance(onerror, types.FunctionType))
103
103
            # Indicate failure in removing 'path' if path is subdir0
104
104
            # We later check to ensure that this is indicated
105
 
            # to the user as a warning.
 
105
            # to the user as a warning. We raise OSError to construct
 
106
            # proper excinfo that needs to be passed to onerror
106
107
            try:
107
108
                raise OSError
108
109
            except OSError, e:
119
120
 
120
121
        self.overrideAttr(os, 'unlink', _dummy_unlink)
121
122
        self.overrideAttr(shutil, 'rmtree', _dummy_rmtree)
122
 
 
123
123
        stdout = tests.StringIOWrapper()
124
124
        stderr = tests.StringIOWrapper()
125
125
        ui.ui_factory = tests.TestUIFactory(stdout=stdout, stderr=stderr)
 
126
 
126
127
        BzrDir.create_standalone_workingtree('.')
127
128
        self.build_tree(['0foo', '1bar', '2baz', 'subdir0/'])
128
129
        clean_tree('.', unknown=True, no_prompt=True)