[OE-core] [PATCHv2 01/29] oeqa/core/loader: Switch method definition for _make_failed_test
Aníbal Limón
anibal.limon at linux.intel.com
Wed Jul 12 19:36:47 UTC 2017
This was a mistake of me to define wrong what methods needs
to be defined by certain python version.
See rev d8380d098a290510b442a7abd2dd5a50cabf5844.
Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
---
meta/lib/oeqa/core/loader.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/lib/oeqa/core/loader.py b/meta/lib/oeqa/core/loader.py
index 80e3d2800cd..3306e85d219 100644
--- a/meta/lib/oeqa/core/loader.py
+++ b/meta/lib/oeqa/core/loader.py
@@ -13,7 +13,7 @@ from oeqa.core.decorator import decoratorClasses, OETestDecorator, \
OETestFilter, OETestDiscover
if sys.version_info >= (3,4,4):
- def _make_failed_test(classname, methodname, exception, suiteClass):
+ def _make_failed_test(classname, exception, suiteClass):
"""
When loading tests, the unittest framework stores any exceptions and
displays them only when the 'run' method is called.
@@ -23,7 +23,7 @@ if sys.version_info >= (3,4,4):
"""
raise exception
else:
- def _make_failed_test(classname, exception, suiteClass):
+ def _make_failed_test(classname, methodname, exception, suiteClass):
raise exception
unittest.loader._make_failed_test = _make_failed_test
--
2.11.0
More information about the Openembedded-core
mailing list