aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-05-11 12:09:31 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-06-02 11:18:47 +0200
commit628c3eefd6bed9f5b8195b08566713dc6ba0420c (patch)
tree97136ae60c6354e971907772e2e5a9bcf41a3559
parent5f0597c73736f19a745e3f48782f443e14f8b7b4 (diff)
downloadallocbench-628c3eefd6bed9f5b8195b08566713dc6ba0420c.tar.gz
allocbench-628c3eefd6bed9f5b8195b08566713dc6ba0420c.zip
bench.py: fix benchmark check
-rwxr-xr-xbench.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench.py b/bench.py
index b440011..007dbe9 100755
--- a/bench.py
+++ b/bench.py
@@ -178,7 +178,7 @@ def main():
# find Benchmark class
for member in bench_module.__dict__.values():
- if (isinstance(member, type)
+ if (not isinstance(member, type)
or member is allocbench.benchmark.Benchmark
or not issubclass(member, allocbench.benchmark.Benchmark)):
continue