File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11environment :
22 matrix :
33 - TOXENV : py27
4- - TOXENV : py34
4+ - TOXENV : py35
55
66install :
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
2019test_script : tox
20+
21+ cache :
22+ - ' %LOCALAPPDATA%\pip\cache'
23+ - ' %USERPROFILE%\.pre-commit'
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments