diff options
Diffstat (limited to 'meta/lib/oeqa/core/loader.py')
-rw-r--r-- | meta/lib/oeqa/core/loader.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/lib/oeqa/core/loader.py b/meta/lib/oeqa/core/loader.py index a38032590d..b9ba9235af 100644 --- a/meta/lib/oeqa/core/loader.py +++ b/meta/lib/oeqa/core/loader.py @@ -171,11 +171,11 @@ class OETestLoader(unittest.TestLoader): """ if issubclass(testCaseClass, unittest.suite.TestSuite): raise TypeError("Test cases should not be derived from TestSuite." \ - " Maybe you meant to derive from TestCase?") + " Maybe you meant to derive %s from TestCase?" \ + % testCaseClass.__name__) if not issubclass(testCaseClass, self.caseClass): - raise TypeError("Test cases need to be derived from %s" % \ - self.caseClass.__name__) - + raise TypeError("Test %s is not derived from %s" % \ + (testCaseClass.__name__, self.caseClass.__name__)) testCaseNames = self.getTestCaseNames(testCaseClass) if not testCaseNames and hasattr(testCaseClass, 'runTest'): |