~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: Martin Pool
  • Date: 2009-06-30 04:13:19 UTC
  • mto: This revision was merged to the branch mainline in revision 4491.
  • Revision ID: mbp@sourcefrog.net-20090630041319-luqqrjw1nn59chft
test and news for forcing readonly deletion

Show diffs side-by-side

added added

removed removed

Lines of Context:
240
240
        self.failIfExists('dir')
241
241
 
242
242
 
 
243
class TestDeleteAny(tests.TestCaseInTempDir):
 
244
 
 
245
    def test_delete_any_readonly(self):
 
246
        # from <https://bugs.launchpad.net/bzr/+bug/218206>
 
247
        self.build_tree(['d/', 'f'])
 
248
        osutils.make_readonly('d')
 
249
        osutils.make_readonly('f')
 
250
 
 
251
        osutils.delete_any('f')
 
252
        osutils.delete_any('d')
 
253
 
 
254
 
243
255
class TestKind(tests.TestCaseInTempDir):
244
256
 
245
257
    def test_file_kind(self):