Commits

akalias  committed 01d5834

fixed typo in -T timing options

  • Participants
  • Parent commits 4245d80

Comments (0)

Files changed (1)

File test_runner.py

                     result.addSuccess(self)
             else: break
         
-        t = (time.time() -t) / 5
+        t = (time.time() -t) / self.times_run
 
         result.timings.update({repr(self): t})
 
         self.timings = {}
     return wrapper
 
-def monkeyPatchProfiling(times_run):
+def monkeyPatchTiming(times_run):
     unittest.TestCase.run = unittest_TestCase_run
     unittest.TestCase.times_run = times_run
     
             [e.strip() for e in options.exclude.split(',')]
         )
     
-    if options.profile: monkeyPatchProfiling(options.profile)
+    if options.profile: monkeyPatchTiming(options.profile)
 
     ########################################################################
     # load modules, filtering by tag