aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark/contexts/dummy.py
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-02-08 14:42:08 -0800
committerRoss Brattain <ross.b.brattain@intel.com>2017-02-09 21:27:46 +0000
commit6a9f0f9fbd1e86f320ccc188403cd2e1a2a66c70 (patch)
treef60c5a6599491bcfa83f7c2160e51efb7b451c3f /yardstick/benchmark/contexts/dummy.py
parent1787d1f400118de3f6bd60bc968cea39b181923e (diff)
fix super() calls, must use explicit class name
self.__class__ is not correct. For Python 2 we have to explicitly use the class name see http://stackoverflow.com/questions/4235078/how-to-avoid-infinite-recursion-with-super Change-Id: I584ca565707b7331c1742fb33c8b524f7b7c9bf9 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Diffstat (limited to 'yardstick/benchmark/contexts/dummy.py')
-rw-r--r--yardstick/benchmark/contexts/dummy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yardstick/benchmark/contexts/dummy.py b/yardstick/benchmark/contexts/dummy.py
index f7530035c..0edc250f8 100644
--- a/yardstick/benchmark/contexts/dummy.py
+++ b/yardstick/benchmark/contexts/dummy.py
@@ -22,7 +22,7 @@ class DummyContext(Context):
__context_type__ = "Dummy"
def __init__(self):
- super(self.__class__, self).__init__()
+ super(DummyContext, self).__init__()
def init(self, attrs):
pass