From 7f776fe19ad05d5180d7ae3efc3674e94ccba365 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Tue, 22 Sep 2015 20:49:11 +0200 Subject: [PATCH] skip chmod using cache access warning tests on windows --- testing/test_cache.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testing/test_cache.py b/testing/test_cache.py index bd33c1c7d..0538be9d7 100755 --- a/testing/test_cache.py +++ b/testing/test_cache.py @@ -1,3 +1,4 @@ +import sys import pytest import os import shutil @@ -32,6 +33,7 @@ class TestNewAPI: cache = config.cache cache.set('test/broken', []) + @pytest.mark.skipif(sys.platform.startswith('win'), reason='no chmod on windows') def test_cache_writefail_permissions(self, testdir): testdir.makeini("[pytest]") testdir.tmpdir.ensure_dir('.cache').chmod(0) @@ -39,6 +41,7 @@ class TestNewAPI: cache = config.cache cache.set('test/broken', []) + @pytest.mark.skipif(sys.platform.startswith('win'), reason='no chmod on windows') def test_cache_failure_warns(self, testdir): testdir.tmpdir.ensure_dir('.cache').chmod(0) testdir.makepyfile("""