Fix reference to PytestWarning in warningsfilter mark

This commit is contained in:
Bruno Oliveira 2018-09-04 15:06:14 -03:00
parent a054aa4797
commit 5ef51262f7
1 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,9 @@ class TestNewAPI(object):
cache.set("test/broken", [])
@pytest.mark.skipif(sys.platform.startswith("win"), reason="no chmod on windows")
@pytest.mark.filterwarnings("ignore:could not create cache path:PytestWarning")
@pytest.mark.filterwarnings(
"ignore:could not create cache path:pytest.PytestWarning"
)
def test_cache_writefail_permissions(self, testdir):
testdir.makeini("[pytest]")
testdir.tmpdir.ensure_dir(".pytest_cache").chmod(0)