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

Simon Glass sjg at chromium.org
Thu Oct 24 00:59:09 UTC 2019


On Tue, 22 Oct 2019 at 21:20, Tom Rini <trini at konsulko.com> 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>
> 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>
> [trini: Update for current file with a few more cases, un-pin pytest in CI]
> Signed-off-by: Tom Rini <trini at konsulko.com>
> ---
>  .gitlab-ci.yml      |  2 +-
>  .travis.yml         |  2 +-
>  test/py/conftest.py | 30 ++++++++++++------------------
>  3 files changed, 14 insertions(+), 20 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>
Tested on sandbox:
Tested-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list