diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-20 18:04:54 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-20 18:04:54 (GMT) |
commit | bbfe6c3986dc61eecd592fb3a290fce6c089c4e7 (patch) | |
tree | 9c79e5eb64b8818c54c14577103fb9b601aa20ab | |
parent | 2ccb98800af87505d94a6f3b2bec6a97d200bb3a (diff) | |
download | cpython-bbfe6c3986dc61eecd592fb3a290fce6c089c4e7.zip cpython-bbfe6c3986dc61eecd592fb3a290fce6c089c4e7.tar.gz cpython-bbfe6c3986dc61eecd592fb3a290fce6c089c4e7.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 f4d80b4..97828af 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -363,7 +363,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 |