diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-15 13:11:16 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-16 02:46:31 +0200 |
commit | 0210e394e0776d0b7097bf666bebd690ed0c0e4f (patch) | |
tree | e74014dd49c93f75b8cf388d700b681a321d261b /git/test/performance/lib.py | |
parent | a2d248bb8362808121f6b6abfd316d83b65afa79 (diff) | |
download | gitpython-0210e394e0776d0b7097bf666bebd690ed0c0e4f.tar.gz |
src: import os.path as osp
Diffstat (limited to 'git/test/performance/lib.py')
-rw-r--r-- | git/test/performance/lib.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/git/test/performance/lib.py b/git/test/performance/lib.py index b57b9b71..700fee98 100644 --- a/git/test/performance/lib.py +++ b/git/test/performance/lib.py @@ -1,21 +1,23 @@ """Contains library functions""" +import logging import os -from git.test.lib import ( - TestBase -) import tempfile -import logging +from git import ( + Repo +) from git.db import ( GitCmdObjectDB, GitDB ) - -from git import ( - Repo +from git.test.lib import ( + TestBase ) from git.util import rmtree +import os.path as osp + + #{ Invvariants k_env_git_repo = "GIT_PYTHON_TEST_GIT_REPO_BASE" @@ -52,7 +54,7 @@ class TestBigRepoR(TestBase): logging.info( ("You can set the %s environment variable to a .git repository of" % k_env_git_repo) + "your choice - defaulting to the gitpython repository") - repo_path = os.path.dirname(__file__) + repo_path = osp.dirname(__file__) # end set some repo path self.gitrorepo = Repo(repo_path, odbt=GitCmdObjectDB, search_parent_directories=True) self.puregitrorepo = Repo(repo_path, odbt=GitDB, search_parent_directories=True) |