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 | 09285e019d35e4cbb8eac48818516edce1f68ae4 (patch) | |
tree | 534d6ad3cfbc8c1ef5b5d645c7c05fef17dfa3e9 /Lib/test/support/__init__.py | |
parent | 8551495ad1eea1b7985c2bfb0a29d896b5039df7 (diff) | |
download | cpython-09285e019d35e4cbb8eac48818516edce1f68ae4.zip cpython-09285e019d35e4cbb8eac48818516edce1f68ae4.tar.gz cpython-09285e019d35e4cbb8eac48818516edce1f68ae4.tar.bz2 |
Issue #28666: Try to fix removing readonly directories on Windows.
Diffstat (limited to 'Lib/test/support/__init__.py')
-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 |