diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-20 18:36:51 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-20 18:36:51 (GMT) |
commit | 9f64de8ba4973124764f8da56cad0fda8a4fac16 (patch) | |
tree | 348e6d824c433f520f4417025dfb547a85ac1c26 | |
parent | ba7eb8da099b32247f1cd93b1a92637a35e2f15c (diff) | |
parent | bbfe6c3986dc61eecd592fb3a290fce6c089c4e7 (diff) | |
download | cpython-9f64de8ba4973124764f8da56cad0fda8a4fac16.zip cpython-9f64de8ba4973124764f8da56cad0fda8a4fac16.tar.gz cpython-9f64de8ba4973124764f8da56cad0fda8a4fac16.tar.bz2 |
Issue #28666: Fix removing readonly directories on Windows.
-rw-r--r-- | 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 index 22d8bd6..52c908e 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -364,7 +364,7 @@ if sys.platform.startswith("win"): 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 |