summaryrefslogtreecommitdiff
path: root/git/test/performance/lib.py
diff options
context:
space:
mode:
authorKostis Anagnostopoulos <ankostis@gmail.com>2016-09-27 22:07:19 +0200
committerKostis Anagnostopoulos <ankostis@gmail.com>2016-09-28 03:35:38 +0200
commit137ee6ef22c4e6480f95972ef220d1832cdc709a (patch)
tree20d611a4746b5fc4d188673ec309d24e29be5683 /git/test/performance/lib.py
parent434505f1b6f882978de17009854d054992b827cf (diff)
downloadgitpython-137ee6ef22c4e6480f95972ef220d1832cdc709a.tar.gz
Win, #519: FIX with_rw_directory() to remove read-only dirs
+ Stop using gitdb's respective helper. + Fix files chmod(555) which CANNOT DELETE on Windows (but do on Linux).
Diffstat (limited to 'git/test/performance/lib.py')
-rw-r--r--git/test/performance/lib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/test/performance/lib.py b/git/test/performance/lib.py
index bb3f7a99..eebbfd76 100644
--- a/git/test/performance/lib.py
+++ b/git/test/performance/lib.py
@@ -4,7 +4,6 @@ from git.test.lib import (
TestBase
)
from gitdb.test.lib import skip_on_travis_ci
-import shutil
import tempfile
import logging
@@ -16,6 +15,7 @@ from git.db import (
from git import (
Repo
)
+from git.util import rmtree
#{ Invvariants
k_env_git_repo = "GIT_PYTHON_TEST_GIT_REPO_BASE"
@@ -86,7 +86,7 @@ class TestBigRepoRW(TestBigRepoR):
def tearDown(self):
super(TestBigRepoRW, self).tearDown()
if self.gitrwrepo is not None:
- shutil.rmtree(self.gitrwrepo.working_dir)
+ rmtree(self.gitrwrepo.working_dir)
self.gitrwrepo.git.clear_cache()
self.gitrwrepo = None
self.puregitrwrepo.git.clear_cache()