All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] test/py: Fix pytest4 deprecation warnings
Date: Wed, 13 Mar 2019 07:25:01 -0400	[thread overview]
Message-ID: <20190313112501.GB8732@bill-the-cat> (raw)
In-Reply-To: <339bad93-6e99-a427-ebfc-0ac400235277@gmail.com>

On Wed, Mar 13, 2019 at 12:20:49PM +0100, Marek Vasut wrote:
> On 3/13/19 12:19 PM, Tom Rini wrote:
> > 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@gmail.com>
> >> Cc: Igor Opaniuk <igor.opaniuk@linaro.org>
> >> Cc: Tom Rini <trini@konsulko.com>
> >> Cc: Simon Glass <sjg@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.
> 
> That's what's in debian testing though, so maybe we need to support it
> somehow.

Yes, I'm _very_ frustrated at the speed at which pytest went from "this
is the API" to "this API is deprecated" to "this API doesn't work and
here's the new, incompatible API".  Debian/testing needs to use
virtualenv to setup a python area with older pytest installed, just like
we do in .travis.yml.

And wrt making our python stuff happier with newer versions, I'm far
more worried about all of the python2-and-not-3 scripts we have
currently. :(

-- 
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/1b6b7b0d/attachment.sig>

  reply	other threads:[~2019-03-13 11:25 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-13  4:08 [U-Boot] [PATCH] test/py: Fix pytest4 deprecation warnings Marek Vasut
2019-03-13 11:19 ` Tom Rini
2019-03-13 11:20   ` Marek Vasut
2019-03-13 11:25     ` Tom Rini [this message]
2019-03-13 11:27       ` Marek Vasut
2019-03-13 11:29         ` Tom Rini
2019-03-13 11:30           ` Marek Vasut
2019-03-13 16:01             ` Tom Rini
2019-03-13 18:23               ` Marek Vasut
2019-03-13 19:42                 ` Tom Rini
2019-03-14  0:20                   ` Marek Vasut
2019-03-14  1:01                     ` Tom Rini
2019-03-15 17:39                       ` Marek Vasut
2019-03-16  1:50                         ` Tom Rini
2019-03-16 20:23                           ` Marek Vasut
2019-03-16 20:35                             ` Tom Rini
2019-03-17 12:47                       ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190313112501.GB8732@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.