Skip to content

Commit

Permalink
Fix test failure caused by strict pytest warnings
Browse files Browse the repository at this point in the history
Pytest 7 not ignoring warnings as instructed on pytest.ini
pytest-dev/pytest#9643
  • Loading branch information
blairconrad committed Feb 28, 2022
1 parent 93d96ed commit e7b8986
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pyproject.toml
Expand Up @@ -19,4 +19,7 @@ exclude = '''
filterwarnings = [
"error",
"ignore:SelectableGroups:DeprecationWarning",
"ignore:<class '.*'> 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",
]
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -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
Expand Down

0 comments on commit e7b8986

Please sign in to comment.