diff options
author | Juro Bystricky <juro.bystricky@intel.com> | 2016-12-10 09:21:45 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-12 15:16:39 +0000 |
commit | d62f18c39bc0ed3b0f5ac8465b393c15f2143ecf (patch) | |
tree | b4c54b885cd316f6ecba047ea73e4710651f8226 | |
parent | db7799747b263507427e325638353142ae79403c (diff) | |
download | openembedded-core-d62f18c39bc0ed3b0f5ac8465b393c15f2143ecf.tar.gz openembedded-core-d62f18c39bc0ed3b0f5ac8465b393c15f2143ecf.tar.bz2 openembedded-core-d62f18c39bc0ed3b0f5ac8465b393c15f2143ecf.zip |
targetloader.py: drop test for ClassType
ClassType was removed from python3.
The code testing for ClassType kept throwing AttributeError exceptions:
module 'types' has no attribute 'ClassType'
The exceptions prevented loading of any dynamically resolved target
controllers.
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oeqa/controllers/testtargetloader.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/meta/lib/oeqa/controllers/testtargetloader.py b/meta/lib/oeqa/controllers/testtargetloader.py index a1b7b1d92b..b51d04b213 100644 --- a/meta/lib/oeqa/controllers/testtargetloader.py +++ b/meta/lib/oeqa/controllers/testtargetloader.py @@ -61,8 +61,6 @@ class TestTargetLoader: obj = getattr(module, target) if obj: from oeqa.targetcontrol import BaseTarget - if (not isinstance(obj, (type, types.ClassType))): - bb.warn("Target {0} found, but not of type Class".format(target)) if( not issubclass(obj, BaseTarget)): bb.warn("Target {0} found, but subclass is not BaseTarget".format(target)) except: |