]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/core/decorator/__init__.py: set metaclass to ABCMeta
authorChen Qi <Qi.Chen@windriver.com>
Fri, 1 Jun 2018 05:03:00 +0000 (13:03 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Jun 2018 14:14:43 +0000 (15:14 +0100)
commit28c4fafb2322ea8c37bcd7710f22f46ef552a902
treecefdb30810e6186ff4df3d3b1a001ef6b96d0a73
parent909568821fbad8a6a7034b10a2dc349a210fdfc6
oeqa/core/decorator/__init__.py: set metaclass to ABCMeta

OETestFilter is a subclass of OETestDecorator. It wants to make
use of @abstractmethod decorator. But such decorator requires
metaclass to be ABCMeta to have effect. So add it now to achieve
the designed behaviour.

Comments from python's manual:
"""
Using this decorator requires that the class's metaclass is ABCMeta
or is derived from it.
"""

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/core/decorator/__init__.py