From ada3ade843bb0f03b0ca274698ea0f6e13bf1033 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 9 Aug 2023 06:07:33 -0400 Subject: [PATCH] test(build): PytestCollectionWarning should be an error --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index cf9c2c0e4..268573082 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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