Use python3.5 in appveyor over py34

This commit is contained in:
Anthony Sottile 2015-12-22 13:50:21 -08:00
parent df3319176d
commit a488424501
2 changed files with 11 additions and 5 deletions

View file

@ -175,7 +175,10 @@ def rmtree(path):
"""On windows, rmtree fails for readonly dirs."""
def handle_remove_readonly(func, path, exc): # pragma: no cover (windows)
excvalue = exc[1]
if func in (os.rmdir, os.remove) and excvalue.errno == errno.EACCES:
if (
func in (os.rmdir, os.remove, os.unlink) and
excvalue.errno == errno.EACCES
):
os.chmod(path, stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
func(path)
else: