Skip to content

Commit a488424

Browse files
committed
Use python3.5 in appveyor over py34
1 parent df33191 commit a488424

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

appveyor.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
environment:
22
matrix:
33
- TOXENV: py27
4-
- TOXENV: py34
4+
- TOXENV: py35
55

66
install:
7-
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
8-
- pip install tox
9-
- pip install virtualenv --upgrade
7+
- "SET PATH=C:\\Python35;C:\\Python35\\Scripts;%PATH%"
8+
- pip install tox virtualenv --upgrade
109
- "mkdir -p C:\\Temp"
1110
- "SET TMPDIR=C:\\Temp"
1211

@@ -18,3 +17,7 @@ before_test:
1817
- git config --global user.email "[email protected]"
1918

2019
test_script: tox
20+
21+
cache:
22+
- '%LOCALAPPDATA%\pip\cache'
23+
- '%USERPROFILE%\.pre-commit'

pre_commit/util.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@ def rmtree(path):
175175
"""On windows, rmtree fails for readonly dirs."""
176176
def handle_remove_readonly(func, path, exc): # pragma: no cover (windows)
177177
excvalue = exc[1]
178-
if func in (os.rmdir, os.remove) and excvalue.errno == errno.EACCES:
178+
if (
179+
func in (os.rmdir, os.remove, os.unlink) and
180+
excvalue.errno == errno.EACCES
181+
):
179182
os.chmod(path, stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
180183
func(path)
181184
else:

0 commit comments

Comments
 (0)