]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/loader.py: Avoid error in TypeError exception
authorJuro Bystricky <juro.bystricky@intel.com>
Mon, 6 Feb 2017 17:27:22 +0000 (09:27 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 15 Feb 2017 17:29:42 +0000 (09:29 -0800)
Without this an exception would occur

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/core/loader.py

index c73ef9a0fc90c544ee0f6403ccdbc571f337083c..a38032590dedde2004bc38042d427af35bfb571e 100644 (file)
@@ -174,7 +174,7 @@ class OETestLoader(unittest.TestLoader):
                                 " Maybe you meant to derive from TestCase?")
         if not issubclass(testCaseClass, self.caseClass):
             raise TypeError("Test cases need to be derived from %s" % \
-                    caseClass.__name__)
+                    self.caseClass.__name__)
 
 
         testCaseNames = self.getTestCaseNames(testCaseClass)