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): | |||
| 171 | """ | 171 | """ |
| 172 | if issubclass(testCaseClass, unittest.suite.TestSuite): | 172 | if issubclass(testCaseClass, unittest.suite.TestSuite): |
| 173 | raise TypeError("Test cases should not be derived from TestSuite." \ | 173 | raise TypeError("Test cases should not be derived from TestSuite." \ |
| 174 | " Maybe you meant to derive from TestCase?") | 174 | " Maybe you meant to derive %s from TestCase?" \ |
| 175 | % testCaseClass.__name__) | ||
| 175 | if not issubclass(testCaseClass, self.caseClass): | 176 | if not issubclass(testCaseClass, self.caseClass): |
| 176 | raise TypeError("Test cases need to be derived from %s" % \ | 177 | raise TypeError("Test %s is not derived from %s" % \ |
| 177 | self.caseClass.__name__) | 178 | (testCaseClass.__name__, self.caseClass.__name__)) |
| 178 | |||
| 179 | 179 | ||
| 180 | testCaseNames = self.getTestCaseNames(testCaseClass) | 180 | testCaseNames = self.getTestCaseNames(testCaseClass) |
| 181 | if not testCaseNames and hasattr(testCaseClass, 'runTest'): | 181 | if not testCaseNames and hasattr(testCaseClass, 'runTest'): |
