summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/core/loader.py
diff options
context:
space:
mode:
authorRandy MacLeod <Randy.MacLeod@windriver.com>2017-06-02 15:42:46 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-05 09:19:51 +0100
commita89fe5ec17916206cceb72886d9d135196acb84a (patch)
treedf23d91172edc80bc20e5f04e33e05e6147c3a25 /meta/lib/oeqa/core/loader.py
parentf16368d2c50fa12df4145c0ae8402f771f3da186 (diff)
downloadpoky-a89fe5ec17916206cceb72886d9d135196acb84a.tar.gz
oeqa/core: Improve grammar in README and loader comments
(From OE-Core rev: 48cd7ff7ae61ca5772a42ece9fce51976dd0d790) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/core/loader.py')
-rw-r--r--meta/lib/oeqa/core/loader.py8
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
15def _make_failed_test(classname, methodname, exception, suiteClass): 15def _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
24unittest.loader._make_failed_test = _make_failed_test 24unittest.loader._make_failed_test = _make_failed_test