diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-13 21:16:54 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-14 11:14:40 +0000 |
commit | 66effe576587a3aefe2d2a34a47963f687642978 (patch) | |
tree | 86a15da0d4c5e4691befd521816e0c65960b3f04 /meta | |
parent | 5c590a3733262d2450c1006d322ed64c18b82795 (diff) | |
download | poky-66effe576587a3aefe2d2a34a47963f687642978.tar.gz |
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>
Diffstat (limited to 'meta')
-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, \ | |||
24 | # Generate the function definition because this differ across python versions | 24 | # Generate the function definition because this differ across python versions |
25 | # Python >= 3.4.4 uses tree parameters instead four but for example Python 3.5.3 | 25 | # Python >= 3.4.4 uses tree parameters instead four but for example Python 3.5.3 |
26 | # ueses four parameters so isn't incremental. | 26 | # ueses four parameters so isn't incremental. |
27 | _failed_test_args = inspect.getargspec(unittest.loader._make_failed_test).args | 27 | _failed_test_args = inspect.getfullargspec(unittest.loader._make_failed_test).args |
28 | exec("""def _make_failed_test(%s): raise exception""" % ', '.join(_failed_test_args)) | 28 | exec("""def _make_failed_test(%s): raise exception""" % ', '.join(_failed_test_args)) |
29 | unittest.loader._make_failed_test = _make_failed_test | 29 | unittest.loader._make_failed_test = _make_failed_test |
30 | 30 | ||