[PATCH 1/2] Convert host checking to pytest.

Chris Johns chrisj at rtems.org
Sun Mar 15 23:31:20 UTC 2020


On 16/3/20 10:26 am, Gedare Bloom wrote:
> On Fri, Mar 13, 2020 at 5:28 PM Amar Takhar <amar at rtems.org> wrote:
>> +def test_label_error():
>> +       from rtemstoolkit.error import general
> I think all imports should go at the top?

This is done in a number of places. It means the import only happens when the
code comes into scope and this can be a good thing.

Chris


More information about the devel mailing list