Comments
Patch
@@ -2318,13 +2318,13 @@
if previoustimes:
def sortkey(f):
- f = f['path']
- if f in previoustimes:
- # Use most recent time as estimate
- return -previoustimes[f][-1]
- else:
- # Default to a rather arbitrary value of 1 second for new tests
- return -1.0
+ f = f['path']
+ if f in previoustimes:
+ # Use most recent time as estimate
+ return -previoustimes[f][-1]
+ else:
+ # Default to a rather arbitrary value of 1 second for new tests
+ return -1.0
else:
# keywords for slow tests
slow = {b'svn': 10,
@@ -2447,7 +2447,7 @@
self._outputdir = os.path.join(self._outputdir, pathname)
previoustimes = {}
if self.options.order_by_runtime:
- previoustimes = dict(loadtimes(self._outputdir))
+ previoustimes = dict(loadtimes(self._outputdir))
sorttests(testdescs, previoustimes, shuffle=self.options.random)
if 'PYTHONHASHSEED' not in os.environ: