diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-20 11:53:11 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 08:24:00 +0100 |
commit | 44e9a0d2fa759dea281fc32b602cd7878000c277 (patch) | |
tree | 69f6944e4bf34e2309ae8b3cc11eac13afcdf675 /scripts/oe-selftest | |
parent | 8587bce564f715e46e7317218b5c190813d3a939 (diff) | |
download | poky-44e9a0d2fa759dea281fc32b602cd7878000c277.tar.gz |
classes/lib: Update to explictly create lists where needed
Iterators now return views, not lists in python3. Where we need
lists, handle this explicitly.
(From OE-Core rev: caebd862bac7eed725e0f0321bf50793671b5312)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-selftest')
-rwxr-xr-x | scripts/oe-selftest | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/oe-selftest b/scripts/oe-selftest index 00ef51f516..db132fdf9f 100755 --- a/scripts/oe-selftest +++ b/scripts/oe-selftest | |||
@@ -211,7 +211,7 @@ def get_tests_from_module(tmod): | |||
211 | try: | 211 | try: |
212 | import importlib | 212 | import importlib |
213 | modlib = importlib.import_module(tmod) | 213 | modlib = importlib.import_module(tmod) |
214 | for mod in vars(modlib).values(): | 214 | for mod in list(vars(modlib).values()): |
215 | if isinstance(mod, type(oeSelfTest)) and issubclass(mod, oeSelfTest) and mod is not oeSelfTest: | 215 | if isinstance(mod, type(oeSelfTest)) and issubclass(mod, oeSelfTest) and mod is not oeSelfTest: |
216 | for test in dir(mod): | 216 | for test in dir(mod): |
217 | if test.startswith('test_') and hasattr(vars(mod)[test], '__call__'): | 217 | if test.startswith('test_') and hasattr(vars(mod)[test], '__call__'): |