From: Serhiy Storchaka Date: Sun, 20 Nov 2016 18:04:54 +0000 (+0200) Subject: Issue #28666: Fix removing readonly directories on Windows. X-Git-Tag: v2.7.13rc1~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d54d327f1c91c905f4c4efdb937a2cd745771c78;p=thirdparty%2FPython%2Fcpython.git Issue #28666: Fix removing readonly directories on Windows. --- diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index b76647d9e3aa..52226333a6b2 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