]> granicus.if.org Git - python/commitdiff
http://bugs.python.org/issue7029
authorKristján Valur Jónsson <kristjan@ccpgames.com>
Fri, 9 Oct 2009 14:32:19 +0000 (14:32 +0000)
committerKristján Valur Jónsson <kristjan@ccpgames.com>
Fri, 9 Oct 2009 14:32:19 +0000 (14:32 +0000)
a non-default timer wasn't actually used by the individual Tests.

Tools/pybench/pybench.py

index 83a62173c642c56be0cc97b9eb22a817ca407e79..9dee73194a71318ba958050bf088958e7d58cc1e 100755 (executable)
@@ -230,7 +230,7 @@ class Test:
                 raise ValueError('at least one calibration run is required')
             self.calibration_runs = calibration_runs
         if timer is not None:
-            timer = timer
+            self.timer = timer
 
         # Init variables
         self.times = []