[Python-checkins] cpython (merge 3.5 -> 3.6): 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/b9e1a51a2d19
changeset: 105229:b9e1a51a2d19
branch: 3.6
parent: 105224:82ca763882f5
parent: 105227:573fd9607c75
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sun Nov 20 20:36:51 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
@@ -364,7 +364,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