Skip to content

Commit e7b8986

Browse files
committed
Fix test failure caused by strict pytest warnings
Pytest 7 not ignoring warnings as instructed on pytest.ini pytest-dev/pytest#9643
1 parent 93d96ed commit e7b8986

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@ exclude = '''
1919
filterwarnings = [
2020
"error",
2121
"ignore:SelectableGroups:DeprecationWarning",
22+
"ignore:<class '.*'> is not using a cooperative constructor:pytest.PytestDeprecationWarning",
23+
"ignore:The \\(fspath. py.path.local\\) argument to .* is deprecated.:pytest.PytestDeprecationWarning",
24+
"ignore:.* is an Item subclass and should not be a collector.*:pytest.PytestWarning",
2225
]

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ envlist = py37,py38,py39,py310
44
[testenv]
55
# install pytest in the virtualenv where commands will be executed
66
deps =
7-
pytest >= 6.2.4
7+
pytest >= 7.0.1
88
pytest-black
99
pydicom>=2.1.1
1010
flake8

0 commit comments

Comments
 (0)