Skip to content

Commit ada3ade

Browse files
committed
test(build): PytestCollectionWarning should be an error
1 parent 0f0aaa6 commit ada3ade

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ filterwarnings = [
4040
"ignore:the imp module is deprecated in favour of importlib:DeprecationWarning",
4141
"ignore:distutils Version classes are deprecated:DeprecationWarning",
4242
"ignore:The distutils package is deprecated and slated for removal in Python 3.12:DeprecationWarning",
43+
# Pytest warns if it can't collect things that seem to be tests. This should be an error.
44+
"error::pytest.PytestCollectionWarning",
4345
]
4446

4547
# xfail tests that pass should fail the test suite

0 commit comments

Comments
 (0)