[Python-checkins] cpython (3.5): Issue #28666: Fix removing readonly directories on Windows.
serhiy.storchaka
python-checkins at python.org
Sun Nov 20 13:38:03 EST 2016
https://hg.python.org/cpython/rev/573fd9607c75
changeset: 105227:573fd9607c75
branch: 3.5
parent: 105223:9e23b8996584
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sun Nov 20 20:04:54 2016 +0200
summary:
Issue #28666: Fix removing readonly directories on Windows.
files:
Lib/test/support/__init__.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -363,7 +363,7 @@
else:
_force_run(path, os.unlink, fullname)
_waitfor(_rmtree_inner, path, waitall=True)
- _waitfor(os.rmdir, path)
+ _waitfor(lambda p: _force_run(p, os.rmdir, p), path)
else:
_unlink = os.unlink
_rmdir = os.rmdir
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list