[PATCH][win32] rmtree read-only files and dirs on win32

Alexander Belchenko bialix at ukr.net
Sat Jan 21 14:16:14 GMT 2006


Alexander Belchenko пишет:
> First at all in version 0.7 added new win32-specific bug: at the end of
> testing when temporary directory with test data try to be removed error
> occurs:
> 
> E:\work\Python\bzr\bzr-0.7rc3>python bzr --no-plugins selftest -v > 
> test.log
> running tests...
> bzr: ERROR: exceptions.OSError: [Errno 13] Permission denied:
> u'E:/work/Python/bzr/bzr-0.7rc3/test0000.tmp\\test_transport.HttpTransportTest.test_copy_to\\test-transport-blftvd\\a' 
> 
>   at C:\Python24\lib\shutil.py line 166
>   in rmtree
> 
> This error caused by the fact that files a,b,c,d in directory of test
> test_transport.HttpTransportTest.test_copy_to is marked as read-only:

Attached patch helps to remove read-only files and directories on win32.
Pleae, review this patch.

--
Alexander


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rmtree.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20060121/34458e7a/attachment.diff 


More information about the bazaar mailing list