From e7b8986678332fd47b3c47d3a4de83c45a65fe23 Mon Sep 17 00:00:00 2001 From: Blair Conrad Date: Mon, 28 Feb 2022 17:22:51 -0500 Subject: [PATCH] Fix test failure caused by strict pytest warnings Pytest 7 not ignoring warnings as instructed on pytest.ini pytest-dev/pytest#9643 --- pyproject.toml | 3 +++ tox.ini | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 275635c..66a8bf9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,4 +19,7 @@ exclude = ''' filterwarnings = [ "error", "ignore:SelectableGroups:DeprecationWarning", + "ignore: is not using a cooperative constructor:pytest.PytestDeprecationWarning", + "ignore:The \\(fspath. py.path.local\\) argument to .* is deprecated.:pytest.PytestDeprecationWarning", + "ignore:.* is an Item subclass and should not be a collector.*:pytest.PytestWarning", ] diff --git a/tox.ini b/tox.ini index 5bb29e1..e47b0de 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ envlist = py37,py38,py39,py310 [testenv] # install pytest in the virtualenv where commands will be executed deps = - pytest >= 6.2.4 + pytest >= 7.0.1 pytest-black pydicom>=2.1.1 flake8