summaryrefslogtreecommitdiff
path: root/test/git/test_performance.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-22 16:20:24 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-22 16:20:24 +0200
commitb197b2dbb527de9856e6e808339ab0ceaf0a512d (patch)
tree4dcb21b565410c48878be31deebbb441201d542b /test/git/test_performance.py
parent3c770f8e98a0079497d3eb5bc31e7260cc70cc63 (diff)
downloadgitpython-b197b2dbb527de9856e6e808339ab0ceaf0a512d.tar.gz
Adjusted all remaining test suites to use the new TestBase class where appropriate
Diffstat (limited to 'test/git/test_performance.py')
-rw-r--r--test/git/test_performance.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/git/test_performance.py b/test/git/test_performance.py
index 77567515..83d4a91e 100644
--- a/test/git/test_performance.py
+++ b/test/git/test_performance.py
@@ -8,9 +8,7 @@ from test.testlib import *
from git import *
from time import time
-class TestPerformance(object):
- def setup(self):
- self.repo = Repo(GIT_REPO)
+class TestPerformance(TestBase):
def test_iteration(self):
num_objs = 0
@@ -21,7 +19,7 @@ class TestPerformance(object):
# return quite a lot of commits, we just take one and hence abort the operation
st = time()
- for c in self.repo.iter_commits('0.1.6'):
+ for c in self.rorepo.iter_commits('0.1.6'):
num_commits += 1
c.author
c.authored_date