summaryrefslogtreecommitdiffstats
path: root/qtip/runner
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2016-12-07 16:25:18 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2016-12-07 16:25:18 +0800
commit1ff65ed841b3f848ebf44ea8e3bd608220150ebf (patch)
tree601fdd0e7c6caca156aa91409dd7e12cd36cbcc9 /qtip/runner
parent1ce534f64402fd7b2fd85328dda12af9b2ba0c18 (diff)
Fix bugs in `runner/benchmark`
- should inherit `object` for common methods - should use instance class in abstract method Change-Id: I78c08476da544402851e4b53e2d45c32a7f86722 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'qtip/runner')
-rw-r--r--qtip/runner/benchmark.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qtip/runner/benchmark.py b/qtip/runner/benchmark.py
index 56b5b30e..58e5a8d9 100644
--- a/qtip/runner/benchmark.py
+++ b/qtip/runner/benchmark.py
@@ -18,7 +18,7 @@ class Property:
ABSPATH = 'abspath'
-class Benchmark:
+class Benchmark(object):
"""Abstract class of QTIP benchmarks"""
_paths = [path.join(path.dirname(__file__), path.pardir, path.pardir,
@@ -40,7 +40,7 @@ class Benchmark:
def list_all(cls):
"""list all available benchmarks"""
names = chain.from_iterable([listdir(p) for p in cls._paths])
- return [Benchmark(name).describe() for name in names]
+ return [cls(name).describe() for name in names]
def describe(self):
"""description of benchmark"""