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 | d54d327f1c91c905f4c4efdb937a2cd745771c78 (patch) | |
tree | ea6b3806549b684c292ad017eda273cc8bf456e0 | |
parent | f0d0306c24f0de1c18f56b8e3a0a77ab3450c83f (diff) | |
download | cpython-d54d327f1c91c905f4c4efdb937a2cd745771c78.zip cpython-d54d327f1c91c905f4c4efdb937a2cd745771c78.tar.gz cpython-d54d327f1c91c905f4c4efdb937a2cd745771c78.tar.bz2 |
Issue #28666: Fix removing readonly directories on Windows.
-rw-r--r-- | Lib/test/test_support.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index b76647d..5222633 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -242,7 +242,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 |