Skip a couple of tests that fail on Windows

This commit is contained in:
Paul Moore 2016-09-01 14:10:07 +01:00
parent 30be70a816
commit 1f2d639029
2 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,8 @@ def test_get_path_uid_without_NOFOLLOW(monkeypatch):
assert get_path_uid(path) == os.stat(path).st_uid
# Skip unconditionally on Windows, as symlinks need admin privs there
@pytest.mark.skipif("sys.platform == 'win32'")
@pytest.mark.skipif("not hasattr(os, 'symlink')")
def test_get_path_uid_symlink(tmpdir):
f = tmpdir.mkdir("symlink").join("somefile")

View File

@ -149,6 +149,10 @@ class TestRequirementSet(object):
wheel_cache=None)
assert req_set.require_hashes
# This test doesn't appear to handle URL-encoded Windows paths
# correctly. Needs reviewing by someone who understands the logic.
@pytest.mark.xfail("sys.platform == 'win32'",
reason="Code doesn't handle url-encoded Windows paths")
def test_unsupported_hashes(self, data):
"""VCS and dir links should raise errors when --require-hashes is
on.