diff --git a/pyproject.toml b/pyproject.toml index 68165362..622f5ebc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -116,6 +116,11 @@ local_scheme = "no-local-version" [tool.pytest.ini_options] testpaths = ["python/tests"] +filterwarnings = [ + # pytest-10 deprecations are errors so removed-in-10 usage (e.g. iterator + # argvalues, issue #48) fails here before an unbounded pytest upgrade does + "error::pytest.PytestRemovedIn10Warning", +] [tool.coverage.run] branch = true diff --git a/python/tests/test_exception.py b/python/tests/test_exception.py index 9b86433d..b3c0a400 100644 --- a/python/tests/test_exception.py +++ b/python/tests/test_exception.py @@ -7,7 +7,8 @@ @pytest.mark.parametrize( "message, status", - itertools.product(["an exception", "another exception"], [None, -3, 44]), + # materialized: pytest 10 rejects non-Collection iterables as argvalues + list(itertools.product(["an exception", "another exception"], [None, -3, 44])), ) def test_ALException(message, status): match = message