Browse Source

Issue #28666: Fix removing readonly directories on Windows.

pull/40/head
Serhiy Storchaka 10 years ago
parent
commit
bbfe6c3986
  1. 2
      Lib/test/support/__init__.py

2
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

Loading…
Cancel
Save