[OE-core] [PATCH] scripts/oe-selftest: avoid deprecated imp.reload function

Burton, Ross ross.burton at intel.com
Thu May 4 16:41:36 UTC 2017


On 2 May 2017 at 18:37, <leonardo.sandoval.gonzalez at linux.intel.com> wrote:

> As explained in [1], the module function imp.reload has been deprecated for
> importlib.reload, so use the latter instead.
>

$ oe-selftest -r package
2017-05-04 17:40:10,352 - selftest - INFO - Running bitbake -e to get BBPATH
Traceback (most recent call last):
  File "/home/ross/Yocto/poky/scripts/oe-selftest", line 806, in <module>
    ret = main()
  File "/home/ross/Yocto/poky/scripts/oe-selftest", line 500, in main
    importlib.reload(oeqa.selftest)
UnboundLocalError: local variable 'importlib' referenced before assignment

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170504/cee19703/attachment-0002.html>


More information about the Openembedded-core mailing list