Merge pull request #7129 from bluetech/testing-cache-writefail-warning

testing: fix warning issued by test_cache_writefail_cachfile_silent
This commit is contained in:
Ran Benita 2020-04-29 16:00:43 +03:00 committed by GitHub
commit 077d1c3502
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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")