Skip to content

Commit

Permalink
test(build): PytestCollectionWarning should be an error
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Aug 9, 2023
1 parent 0f0aaa6 commit ada3ade
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ filterwarnings = [
"ignore:the imp module is deprecated in favour of importlib:DeprecationWarning",
"ignore:distutils Version classes are deprecated:DeprecationWarning",
"ignore:The distutils package is deprecated and slated for removal in Python 3.12:DeprecationWarning",
# Pytest warns if it can't collect things that seem to be tests. This should be an error.
"error::pytest.PytestCollectionWarning",
]

# xfail tests that pass should fail the test suite
Expand Down

0 comments on commit ada3ade

Please sign in to comment.