From: Juro Bystricky Date: Mon, 6 Feb 2017 17:27:22 +0000 (-0800) Subject: oeqa/loader.py: Avoid error in TypeError exception X-Git-Tag: uninative-1.5~367 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=d1bda068d4bc0ad3ff81ab1f104dc12cedd20b3f;p=openembedded-core.git oeqa/loader.py: Avoid error in TypeError exception Without this an exception would occur Signed-off-by: Juro Bystricky Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/core/loader.py b/meta/lib/oeqa/core/loader.py index c73ef9a0fc..a38032590d 100644 --- a/meta/lib/oeqa/core/loader.py +++ b/meta/lib/oeqa/core/loader.py @@ -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)