[OE-core] [PATCH] oe-selftest: Improved --list-classes when determining test names

Burton, Ross ross.burton at intel.com
Mon Jan 4 13:06:25 UTC 2016


On 4 January 2016 at 12:25, Daniel Istrate <
daniel.alexandrux.istrate at intel.com> wrote:

> +                                if method.startswith("test_") and
> hasattr(vars(t)[method], '__call__'):
>

Using callable() instead of hasattr() would be neater.

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


More information about the Openembedded-core mailing list