From: Tom Rini Date: Mon, 21 Oct 2019 11:51:54 -0400 Subject: [U-Boot] [PATCH 03/10] test/py: Fix pytest4 deprecation warnings In-Reply-To: References: <20191018205338.14879-1-trini@konsulko.com> <20191018205338.14879-4-trini@konsulko.com> Message-ID: <20191021155154.GO11173@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Oct 21, 2019 at 09:25:56AM -0600, Simon Glass wrote: > Hi Tom, > > On Fri, 18 Oct 2019 at 14:53, Tom Rini wrote: > > > > From: Marek Vasut > > > > 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 > > Cc: Igor Opaniuk > > Cc: Tom Rini > > Cc: Simon Glass > > [trini: Update for current file with a few more cases, un-pin pytest in CI] > > Signed-off-by: Tom Rini > > --- > > .gitlab-ci.yml | 2 +- > > .travis.yml | 2 +- > > test/py/conftest.py | 30 ++++++++++++------------------ > > 3 files changed, 14 insertions(+), 20 deletions(-) > > This causes a breakage on my machine even with the rest of the patches applied. > > make qcheck > ./test/run quick > sandbox: +make O=/scratch/sglass/cosarm/src/third_party/u-boot/files/build-sandbox > -s sandbox_defconfig > +make O=/scratch/sglass/cosarm/src/third_party/u-boot/files/build-sandbox -s -j8 > INTERNALERROR> Traceback (most recent call last): > INTERNALERROR> File > "/usr/lib/python2.7/dist-packages/_pytest/main.py", line 101, in > wrap_session As I've promised Heinrich as well, I will update the README.md file for the tests. That's invoking python2-pytest so it's not going to work. You need to either pip3 (or virtualenv -p /usr/bin/python3) install pytest to get the python3 version. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: