Skip to content

Commit 49e50d3

Browse files
committed
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", [])
1 parent cbca9f1 commit 49e50d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/test_cacheprovider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_config_cache_dataerror(self, testdir):
3131
val = config.cache.get("key/name", -2)
3232
assert val == -2
3333

34-
@pytest.mark.filterwarnings("default")
34+
@pytest.mark.filterwarnings("ignore:could not create cache path")
3535
def test_cache_writefail_cachfile_silent(self, testdir):
3636
testdir.makeini("[pytest]")
3737
testdir.tmpdir.join(".pytest_cache").write("gone wrong")

0 commit comments

Comments
 (0)