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 bffb2dac8d..51bfd9de01 100644 --- a/meta/lib/oeqa/core/loader.py +++ b/meta/lib/oeqa/core/loader.py | |||
@@ -14,11 +14,11 @@ from oeqa.core.decorator import decoratorClasses, OETestDecorator, \ | |||
14 | 14 | ||
15 | def _make_failed_test(classname, methodname, exception, suiteClass): | 15 | def _make_failed_test(classname, methodname, exception, suiteClass): |
16 | """ | 16 | """ |
17 | When loading tests unittest framework stores the exception in a new | 17 | When loading tests, the unittest framework stores any exceptions and |
18 | class created for be displayed into run(). | 18 | displays them only when the 'run' method is called. |
19 | 19 | ||
20 | For our purposes will be better to raise the exception in loading | 20 | For our purposes, it is better to raise the exceptions in the loading |
21 | step instead of wait to run the test suite. | 21 | step rather than waiting to run the test suite. |
22 | """ | 22 | """ |
23 | raise exception | 23 | raise exception |
24 | unittest.loader._make_failed_test = _make_failed_test | 24 | unittest.loader._make_failed_test = _make_failed_test |