diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-13 21:16:54 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-06 10:21:20 +0000 |
commit | e65e9492acad4861b22e6f29d5f470a82778f2b4 (patch) | |
tree | 2a6a53830a4ce17420d6d4a69b9879168546803a | |
parent | 260738158b09aea0beeca85b778aa4ab08ba1c4c (diff) | |
download | openembedded-core-e65e9492acad4861b22e6f29d5f470a82778f2b4.tar.gz openembedded-core-e65e9492acad4861b22e6f29d5f470a82778f2b4.tar.bz2 openembedded-core-e65e9492acad4861b22e6f29d5f470a82778f2b4.zip |
oeqa/loader: Fix deprecation warning
Clean up the warning:
meta/lib/oeqa/core/loader.py:27: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()
_failed_test_args = inspect.getargspec(unittest.loader._make_failed_test).args
(From OE-Core rev: d2deb66830be2d44532fea3d5db763b57778252a)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oeqa/core/loader.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/core/loader.py b/meta/lib/oeqa/core/loader.py index 6070bf5310..e66de32cb1 100644 --- a/meta/lib/oeqa/core/loader.py +++ b/meta/lib/oeqa/core/loader.py @@ -24,7 +24,7 @@ from oeqa.core.decorator import decoratorClasses, OETestDecorator, \ # Generate the function definition because this differ across python versions # Python >= 3.4.4 uses tree parameters instead four but for example Python 3.5.3 # ueses four parameters so isn't incremental. -_failed_test_args = inspect.getargspec(unittest.loader._make_failed_test).args +_failed_test_args = inspect.getfullargspec(unittest.loader._make_failed_test).args exec("""def _make_failed_test(%s): raise exception""" % ', '.join(_failed_test_args)) unittest.loader._make_failed_test = _make_failed_test |