[U-Boot] [PATCH] test/py: Fix pytest4 deprecation warnings

Tom Rini trini at konsulko.com
Wed Mar 13 11:19:19 UTC 2019


On Wed, Mar 13, 2019 at 05:08:14AM +0100, Marek Vasut wrote:

> 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.
> 
> Signed-off-by: Marek Vasut <marek.vasut+renesas at gmail.com>
> Cc: Igor Opaniuk <igor.opaniuk at linaro.org>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: Simon Glass <sjg at chromium.org>

Deferred, for now we don't support newer pytest than 2.8.7 and you'll
need to use virtualenv to set that up if needed.  There is not, AFAICT,
a way to support both versions.

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


More information about the U-Boot mailing list