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", [])
This commit is contained in:
Ran Benita 2020-04-28 22:46:44 +03:00
parent cbca9f1def
commit 49e50d3106
1 changed files with 1 additions and 1 deletions

View File

@ -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")