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:
commit
077d1c3502
|
@ -31,7 +31,7 @@ class TestNewAPI:
|
||||||
val = config.cache.get("key/name", -2)
|
val = config.cache.get("key/name", -2)
|
||||||
assert val == -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):
|
def test_cache_writefail_cachfile_silent(self, testdir):
|
||||||
testdir.makeini("[pytest]")
|
testdir.makeini("[pytest]")
|
||||||
testdir.tmpdir.join(".pytest_cache").write("gone wrong")
|
testdir.tmpdir.join(".pytest_cache").write("gone wrong")
|
||||||
|
|
Loading…
Reference in New Issue