changeset: 105227:573fd9607c75 branch: 3.5 parent: 105223:9e23b8996584 user: Serhiy Storchaka date: Sun Nov 20 20:04:54 2016 +0200 files: Lib/test/support/__init__.py description: Issue #28666: Fix removing readonly directories on Windows. diff -r 9e23b8996584 -r 573fd9607c75 Lib/test/support/__init__.py --- a/Lib/test/support/__init__.py Sun Nov 20 17:42:32 2016 +0200 +++ b/Lib/test/support/__init__.py Sun Nov 20 20:04:54 2016 +0200 @@ -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