Fix reference to PytestWarning in warningsfilter mark
This commit is contained in:
parent
a054aa4797
commit
5ef51262f7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue