Skip to content

Commit

Permalink
stop test timing
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Mar 16, 2012
1 parent 0d970d3 commit cf38d13
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions ckan/ckan_nose_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,22 @@ def startTest(self, test):
"""
startTest: start timing.
"""
self._started = time.time()
## self._started = time.time()

def stopTest(self, test):
"""
stopTest: stop timing, canonicalize the test name, and save
the run time.
"""
runtime = time.time() - self._started

# CTB: HACK!
f = open('times.txt', 'a')

testname = str(test)
#if ' ' in testname:
# testname = testname.split(' ')[1]

f.write('%s,%s\n' % (testname, str(runtime)))

f.close()
## runtime = time.time() - self._started
##
## # CTB: HACK!
## f = open('times.txt', 'a')
##
## testname = str(test)
## #if ' ' in testname:
## # testname = testname.split(' ')[1]
##
## f.write('%s,%s\n' % (testname, str(runtime)))
##
## f.close()

0 comments on commit cf38d13

Please sign in to comment.