diff --git a/pyproject.toml b/pyproject.toml index 92672c4d32e..dd4be6c22d5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,7 +40,6 @@ filterwarnings = [ "default:invalid escape sequence:DeprecationWarning", # ignore use of unregistered marks, because we use many to test the implementation "ignore::_pytest.warning_types.PytestUnknownMarkWarning", - "default:.*.fspath is deprecated and will be replaced by .*.path.*:pytest.PytestDeprecationWarning", ] pytester_example_dir = "testing/example_scripts" markers = [ diff --git a/testing/plugins_integration/pytest.ini b/testing/plugins_integration/pytest.ini index f6c77b0dee5..b42b07d145a 100644 --- a/testing/plugins_integration/pytest.ini +++ b/testing/plugins_integration/pytest.ini @@ -2,3 +2,4 @@ addopts = --strict-markers filterwarnings = error::pytest.PytestWarning + ignore:.*.fspath is deprecated and will be replaced by .*.path.*:pytest.PytestDeprecationWarning