summaryrefslogtreecommitdiffstats
path: root/poky/meta/lib/oeqa/core/decorator/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'poky/meta/lib/oeqa/core/decorator/__init__.py')
-rw-r--r--poky/meta/lib/oeqa/core/decorator/__init__.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/poky/meta/lib/oeqa/core/decorator/__init__.py b/poky/meta/lib/oeqa/core/decorator/__init__.py
index 855b6b9d2..14d7bfcd3 100644
--- a/poky/meta/lib/oeqa/core/decorator/__init__.py
+++ b/poky/meta/lib/oeqa/core/decorator/__init__.py
@@ -2,15 +2,15 @@
# Released under the MIT license (see COPYING.MIT)
from functools import wraps
-from abc import abstractmethod
+from abc import abstractmethod, ABCMeta
decoratorClasses = set()
-def registerDecorator(obj):
- decoratorClasses.add(obj)
- return obj
+def registerDecorator(cls):
+ decoratorClasses.add(cls)
+ return cls
-class OETestDecorator(object):
+class OETestDecorator(object, metaclass=ABCMeta):
case = None # Reference of OETestCase decorated
attrs = None # Attributes to be loaded by decorator implementation
OpenPOWER on IntegriCloud