]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/core/loader.py: Avoid importing tests with built-ins name
authorMariano Lopez <mariano.lopez@linux.intel.com>
Mon, 27 Feb 2017 07:45:01 +0000 (07:45 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Mar 2017 15:50:19 +0000 (15:50 +0000)
commitd9548f981448307b042807373e469f0d0b110bfe
tree858b9b62a4ca886561e646187cb727e5d20daea2
parentd6ff4891376417504018af27e8e729a412feeeea
oeqa/core/loader.py: Avoid importing tests with built-ins name

If importing a test with the same name as a built-in module,
it will silently import the built-in and check for tests in
built-in module. This happened with syslog module in debian
based machines, so add a raise to avoid this behavior.

[YOCTO #10978]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/core/loader.py