[OE-core] [PATCH 13/20] oeqa/oetest.py: Fix missing oeqa.runtime import.

Aníbal Limón anibal.limon at linux.intel.com
Tue Feb 2 21:31:06 UTC 2016


Yes, but i think is better to import only the module that we need. :)

On 02/02/2016 03:25 PM, Paul Eggleton wrote:
> On Tue, 02 Feb 2016 09:14:16 Aníbal Limón wrote:
>> From: Aníbal Limón <limon.anibal at gmail.com>
>>
>> oeqa.runtime import is used in TestContext to get data fixtures
>> directory.
>>
>> Signed-off-by: Aníbal Limón <limon.anibal at gmail.com>
>> ---
>>  meta/lib/oeqa/oetest.py | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
>> index 28577ef..16705cc 100644
>> --- a/meta/lib/oeqa/oetest.py
>> +++ b/meta/lib/oeqa/oetest.py
>> @@ -18,7 +18,7 @@ except ImportError:
>>      pass
>>  import logging
>>
>> -import oeqa
>> +import oeqa.runtime
>>  from oeqa.utils.decorators import LogResults, gettag, getResults
>>
>>  logger = logging.getLogger("BitBake")
> 
> Are you sure this actually does anything? Importing the parent module should 
> already allow access to child modules, AIUI.
> 
> Cheers,
> Paul
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160202/58842d2e/attachment-0002.sig>


More information about the Openembedded-core mailing list