[U-Boot] [PATCHv3 04/13] test/py: Fix pytest4 deprecation warnings

Tom Rini trini at konsulko.com
Fri Nov 1 13:32:00 UTC 2019


On Thu, Oct 24, 2019 at 11:59:19AM -0400, Tom Rini wrote:

> From: Marek Vasut <marek.vasut at gmail.com>
> 
> Fix the following spit from pytest:
> 
> u-boot/test/py/conftest.py:438: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
>   Please use node.get_closest_marker(name) or node.iter_markers(name).
>   Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
>     for board in mark.args:
> 
> In both cases, the later suggestion is applicable.
> 
> Reviewed-by: Stephen Warren <swarren at nvidia.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Signed-off-by: Marek Vasut <marek.vasut+renesas at gmail.com>
> Cc: Igor Opaniuk <igor.opaniuk at gmail.com>
> [trini: Update for current file with a few more cases, un-pin pytest in CI]
> Tested-by: Simon Glass <sjg at chromium.org> [on sandbox]
> Tested-by: Stephen Warren <swarren at nvidia.com>
> Signed-off-by: Tom Rini <trini at konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20191101/82800c85/attachment.sig>


More information about the U-Boot mailing list