]> 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, 2 Jul 2018 09:40:34 +0000 (10:40 +0100)
commit8c3a8c5d9fb31edbc37d8239c4cf5312a815a344
treef86b116d92724e5f31fffbe70aa8224bd7a1a947
parent57f08e7ace4cc9486f86aafd1ade6ab5ad6a94d7
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.
"""

(From OE-Core rev: 28c4fafb2322ea8c37bcd7710f22f46ef552a902)

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