aboutsummaryrefslogtreecommitdiffstats
path: root/testing/buildlog.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/buildlog.py')
-rw-r--r--testing/buildlog.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/testing/buildlog.py b/testing/buildlog.py
index 7160a6af9..d9e960418 100644
--- a/testing/buildlog.py
+++ b/testing/buildlog.py
@@ -121,7 +121,7 @@ class BuildLog(object):
lst.append(log_dir)
if lst:
def warn_problem(func, path, exc_info):
- cls, ins, tb = exc_info
+ cls, ins, _ = exc_info
print("rmtree({}) warning: problem with {}:\n {}: {}".format(
func.__name__, path,
cls.__name__, ins.args))
@@ -137,7 +137,7 @@ class BuildLog(object):
shutil.rmtree(log_dir, onerror=warn_problem)
def set_buildno(self, buildno):
- self.history[buildno] # test
+ self.history[buildno] # test
self._buildno = buildno
@property
@@ -174,4 +174,5 @@ class BuildLog(object):
res.append(key)
return res
+
builds = BuildLog()