[New-bugs-announce] [issue28666] Make test.support.rmtree() able to remove non-writable directories

Serhiy Storchaka report at bugs.python.org
Fri Nov 11 07:12:35 EST 2016


New submission from Serhiy Storchaka:

Some tests create directories with disabled writing or even reading and listing. If them fail test.support.rmtree() can't remove such directories. This cause failures in other tests.

Proposed patch makes test.support.rmtree() able to remove such directories. If some operation fails it try to change the mode of corresponding directory and repeat the try.

----------
components: Tests
files: test-support-rmtree.patch
keywords: patch
messages: 280575
nosy: ezio.melotti, michael.foord, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Make test.support.rmtree() able to remove non-writable directories
type: enhancement
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7
Added file: http://bugs.python.org/file45443/test-support-rmtree.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28666>
_______________________________________


More information about the New-bugs-announce mailing list