Tests pass on windows

This commit is contained in:
Anthony Sottile 2015-01-18 19:45:44 -08:00
parent 56e5c4eb2d
commit 143ed94500
21 changed files with 224 additions and 109 deletions

View file

@ -2,11 +2,12 @@ from __future__ import print_function
from __future__ import unicode_literals
import os.path
import shutil
from pre_commit.util import rmtree
def clean(runner):
if os.path.exists(runner.store.directory):
shutil.rmtree(runner.store.directory)
rmtree(runner.store.directory)
print('Cleaned {0}.'.format(runner.store.directory))
return 0