skip chmod using cache access warning tests on windows
This commit is contained in:
parent
ea9a491fb3
commit
7f776fe19a
|
@ -1,3 +1,4 @@
|
||||||
|
import sys
|
||||||
import pytest
|
import pytest
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
@ -32,6 +33,7 @@ class TestNewAPI:
|
||||||
cache = config.cache
|
cache = config.cache
|
||||||
cache.set('test/broken', [])
|
cache.set('test/broken', [])
|
||||||
|
|
||||||
|
@pytest.mark.skipif(sys.platform.startswith('win'), reason='no chmod on windows')
|
||||||
def test_cache_writefail_permissions(self, testdir):
|
def test_cache_writefail_permissions(self, testdir):
|
||||||
testdir.makeini("[pytest]")
|
testdir.makeini("[pytest]")
|
||||||
testdir.tmpdir.ensure_dir('.cache').chmod(0)
|
testdir.tmpdir.ensure_dir('.cache').chmod(0)
|
||||||
|
@ -39,6 +41,7 @@ class TestNewAPI:
|
||||||
cache = config.cache
|
cache = config.cache
|
||||||
cache.set('test/broken', [])
|
cache.set('test/broken', [])
|
||||||
|
|
||||||
|
@pytest.mark.skipif(sys.platform.startswith('win'), reason='no chmod on windows')
|
||||||
def test_cache_failure_warns(self, testdir):
|
def test_cache_failure_warns(self, testdir):
|
||||||
testdir.tmpdir.ensure_dir('.cache').chmod(0)
|
testdir.tmpdir.ensure_dir('.cache').chmod(0)
|
||||||
testdir.makepyfile("""
|
testdir.makepyfile("""
|
||||||
|
|
Loading…
Reference in New Issue