From 49e50d3106ac44aee8f20151330e0df35ae00cca Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Tue, 28 Apr 2020 22:46:44 +0300 Subject: [PATCH] testing: fix warning issued by test_cache_writefail_cachfile_silent Remove this message which was shown in the warning summary of pytest's own testsuite: testing/test_cacheprovider.py::TestNewAPI::test_cache_writefail_cachfile_silent testing/test_cacheprovider.py:40: PytestCacheWarning: could not create cache path /tmp/pytest-of-ran/pytest-2/test_cache_writefail_cachfile_silent0/.pytest_cache/v/test/broken cache.set("test/broken", []) --- testing/test_cacheprovider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test_cacheprovider.py b/testing/test_cacheprovider.py index eb381ab50..571bef4e4 100644 --- a/testing/test_cacheprovider.py +++ b/testing/test_cacheprovider.py @@ -31,7 +31,7 @@ class TestNewAPI: val = config.cache.get("key/name", -2) assert val == -2 - @pytest.mark.filterwarnings("default") + @pytest.mark.filterwarnings("ignore:could not create cache path") def test_cache_writefail_cachfile_silent(self, testdir): testdir.makeini("[pytest]") testdir.tmpdir.join(".pytest_cache").write("gone wrong")