From 7390869cd670019267a6c8837ddefe091d3b86c2 Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Mon, 2 Dec 2019 17:59:44 +0100 Subject: [PATCH] Skip test_config_file_inaccessible on Windows --- tests/test_config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_config.py b/tests/test_config.py index 45dd86de..0a33ef68 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1,3 +1,6 @@ +import pytest + +from httpie.compat import is_windows from httpie.config import Config from utils import HTTP_OK, MockEnvironment, http @@ -23,7 +26,8 @@ def test_config_file_not_valid(httpbin): assert 'invalid config file' in r.stderr -def test_config_file_not_inaccessible(httpbin): +@pytest.mark.skipif(is_windows, reason='cannot chmod 000 on Windows') +def test_config_file_inaccessible(httpbin): env = MockEnvironment() env.create_temp_config_dir() config_path = env.config_dir / Config.FILENAME